diff --git a/roles/container/tasks/main.yml b/roles/container/tasks/main.yml index f13fb3b..f7acc52 100644 --- a/roles/container/tasks/main.yml +++ b/roles/container/tasks/main.yml @@ -4,3 +4,9 @@ pacman: update_cache=yes - name: install htop pacman: name=htop state=present +- name: Disable getty + file: src=/dev/null dest=/etc/systemd/system/getty.target state=link +- name: Disable logind + file: src=/dev/null dest=/etc/systemd/system/systemd-logind.service state=link +- name: Disable logind + service: name=systemd-logind state=stopped enabled=no