diff --git a/playbooks/groups/virthost.yml b/playbooks/groups/virthost.yml index 2d70c85a94..68dedd7274 100644 --- a/playbooks/groups/virthost.yml +++ b/playbooks/groups/virthost.yml @@ -30,6 +30,7 @@ - { role: openvpn/client, when: vpn|bool } - virthost - { role: clevis, when: datacenter == 'iad2'} + - { role: serial-console, when: datacenter == 'iad2'} tasks: - import_tasks: "{{ tasks_path }}/2fa_client.yml" diff --git a/roles/serial-console/tasks/main.yml b/roles/serial-console/tasks/main.yml index 37b54c134c..ec2840aebc 100644 --- a/roles/serial-console/tasks/main.yml +++ b/roles/serial-console/tasks/main.yml @@ -1,5 +1,5 @@ # -# This role sets up serial console on ttyS0 +# This role sets up serial console on ttyS1 # - name: check for grub serial setup command: cat /etc/grub2-efi.cfg @@ -11,23 +11,23 @@ - serial-console - name: set grub to use serial console - command: /sbin/grubby --update-kernel=ALL --args="console=tty0 console=ttyS0,115200" - when: serial is defined and serial.stdout.find("console=tty0 console=ttyS0,115200") == -1 + command: /sbin/grubby --update-kernel=ALL --args="console=tty0 console=ttyS1,115200" + when: serial is defined and serial.stdout.find("console=tty0 console=ttyS1,115200") == -1 failed_when: '1 != 1' tags: - serial-console - name: setup systemd links for getty (S0) - copy: src=serial-getty@.service dest=/etc/systemd/system/serial-getty@ttyS0.service + copy: src=serial-getty@.service dest=/etc/systemd/system/serial-getty@ttyS1.service tags: - serial-console - name: link template in - file: dest=/etc/systemd/system/getty.target.wants/serial-getty@ttyS0 src=/etc/systemd/system/serial-getty@ttyS0.service state=link + file: dest=/etc/systemd/system/getty.target.wants/serial-getty@ttyS1 src=/etc/systemd/system/serial-getty@ttyS1.service state=link tags: - serial-console - name: start and enable - service: name=serial-getty@ttyS0 enabled=yes state=started + service: name=serial-getty@ttyS1 enabled=yes state=started tags: - serial-console