aboutsummaryrefslogblamecommitdiffstats
path: root/roles/space_server/tasks/gettys.yml
blob: bdf293a2ae2c15fe7a0b8da155a69e374c3f0949 (plain) (tree)
























                                                                                
---
- name: Disable getty@tty1
  systemd:
    name: getty@tty1.service
    enabled: no
    state: stopped
  when: "'container' not in ansible_env"
- name: '- when in nspawn'
  command: systemctl disable getty@tty1.service
  args:
    removes: '/etc/systemd/system/getty.target.wants/getty@tty1.service'
  when: "'container' in ansible_env"

- name: Enable serial-getty@ttyS0
  systemd:
    name: serial-getty@ttyS0.service
    enabled: yes
  when: "'container' not in ansible_env"
- name: '- when in nspawn'
  command: systemctl enable serial-getty@ttyS0.service
  args:
    creates: '/etc/systemd/system/getty.target.wants/serial-getty@ttyS0.service'
  when: "'container' in ansible_env"

# vim: set ts=2 sw=2 et: