aboutsummaryrefslogblamecommitdiffstats
path: root/roles/space_server/tasks/gettys.yml
blob: ea351f4519e912a841e6afdcb918a7de8fbb83b1 (plain) (tree)
1
2
3
4
5
6
7
8





                            

                          


                                                                        
              




                                    

                          


                                                                                
              

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

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

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