ansible-private-box/roles/nyancat/tasks/main.yml

29 lines
513 B
YAML
Raw Permalink Normal View History

2021-11-10 20:47:51 +03:00
---
- name: Install nyancat
apt:
name: nyancat
state: present
when: ansible_facts['os_family'] == "Debian"
- name: Install nyancat unit
copy:
src: files/nyancat-tty.service
dest: /etc/systemd/system/nyancat-tty.service
- name: Disable tty
systemd:
name: "{{ item }}"
enabled: no
state: stopped
loop:
- getty
- getty@tty1
ignore_errors: True
- name: Install nyancat unit
systemd:
name: nyancat-tty
enabled: yes
state: started
daemon_reload: yes