3 ### Tasks applicable for all hosts.
7 ###--------------------------------------------------------------------------
8 ### General permissions.
10 - name: fix permissions in /root
11 tags: [perms, root-perms]
12 file: name=/root mode=0750 owner=root group=root
14 ###--------------------------------------------------------------------------
17 - name: install PKI maintenance scripts
19 copy: src=pki/{{ item }} dest=/etc/cron.daily
24 ###--------------------------------------------------------------------------
25 ### NTP configuration.
27 - name: install NTP configuration files
28 tags: [ntp, ntp-client]
29 copy: src=ntp-client/ntp.conf dest=/etc
30 when: server is not defined or 'ntp' not in server
33 ###--------------------------------------------------------------------------
34 ### SSH configuration.
36 - name: install SSH configuration files
37 tags: [ssh, ssh-config]
38 copy: src=ssh-config/{{ item }} dest=/etc/ssh
46 - name: install main keys for root SSH access
48 template: src=ssh-root-authkeys dest=/root/.ssh/authkeys.base
50 - name: install keys for root SSH access
52 copy: src=ssh-root/{{ item }} dest=/root/.ssh
58 ###----- That's all, folks --------------------------------------------------