add basic.yml apt.yml and sshd.yaml

This commit is contained in:
2020-02-29 04:11:53 +01:00
parent 9e0d4fe374
commit bbcd57cd5b
9 changed files with 959 additions and 0 deletions

View File

@ -1,5 +1,25 @@
---
- name: Update timezone
command: dpkg-reconfigure --frontend noninteractive tzdata
#- name: Restart ssh
# shell: sleep 3; systemctl restart sshd
# async: 1
# poll: 0
# Does NOT Work
#
# Error was:
# Start request repeated too quickly.
#
# See also: https://github.com/ansible/ansible-modules-core/issues/1533
#
- name: Restart ssh
service:
name: ssh
state: restarted
- name: Renew nis databases
shell: make -C /var/yp
when: