main.yml 625 Bytes
Newer Older
Julian Gethmann's avatar
Julian Gethmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
---
- name: enable sshd
  become: yes
  service: name=sshd enabled=yes

- name: restart sshd
  become: yes
  service: name=sshd state=restarted

- name: reload sshd
  become: yes
  service: name=sshd state=reloaded

- name: start sshd
  become: yes
  service: name=sshd state=started

- name: enable ntp
  become: yes
  service: name=ntpdate enabled=yes

- name: start ntp
  become: yes
  service: name=ntpdate state=started
julian.gethmann's avatar
julian.gethmann committed
25 26 27 28

- name: lock root user
  become: yes
  shell: passwd -l root
julian.gethmann's avatar
julian.gethmann committed
29 30 31 32

- name: update-ca-trust
  become: yes
  command: update-ca-trust extract
julian.gethmann's avatar
julian.gethmann committed
33 34 35 36

- name: lock root user
  become: yes
  command: passwd -l root