3 ### Tasks applicable for all hosts.
7 ###--------------------------------------------------------------------------
8 ### General permissions.
10 - name: fix permissions in /root
11 tags: [perms, root-perms]
12 file: path=/root/ mode=0750 owner=root group=root
14 ###--------------------------------------------------------------------------
17 - name: install PKI maintenance scripts
18 tags: [pki, pki-scripts]
19 copy: src=pki/{{ item }} dest=/etc/cron.daily/
24 - name: install common PKI files
26 copy: src=pki/{{ item }} dest=/etc/ca/
33 - name: install /etc/pki/CA link
35 file: path=/etc/pki/CA/cacert.pem state=link src=../../ca/ca.cert
37 ###--------------------------------------------------------------------------
38 ### NTP configuration.
40 - name: install NTP client configuration files
41 tags: [ntp, ntp-client]
42 copy: src=ntp-client/ntp.conf dest=/etc/
43 when: ('ntp') not in server |default([])
46 ###--------------------------------------------------------------------------
47 ### Network databases.
49 - name: install netdb files
51 copy: src=netdb/{{ item }} dest=/etc/
57 ###--------------------------------------------------------------------------
58 ### SSH configuration.
60 - name: install SSH configuration files
61 tags: [ssh, ssh-config]
62 copy: src=ssh-config/{{ item }} dest=/etc/ssh/
70 - name: "create root's .ssh/ directory"
72 file: path=/root/.ssh/ state=directory mode=0750
74 - name: install main keys for root SSH access
76 template: src=ssh-root/authkeys.base dest=/root/.ssh/authkeys.base
77 notify: make in /root/.ssh/
79 - name: install keys for root SSH access
81 copy: src=ssh-root/{{ item }} dest=/root/.ssh/
82 notify: make in /root/.ssh/
88 ###--------------------------------------------------------------------------
91 - name: install backup filters
92 tags: [backup, backup-filters]
93 copy: src=backup/filter.{{ item.label }} dest={{ item.dest }}/.rsync-backup
95 - { label: 'home', dest: '/home' }
96 - { label: 'var-spool', dest: '/var/spool' }
98 - name: install required backup scripts on non-Debian hosts
99 tags: [backup, backup-scripts]
100 copy: src=backup/fshash dest=/usr/local/bin/
103 ###--------------------------------------------------------------------------
104 ### Other miscellaneous files.
106 - name: install sudo configuration
108 copy: src=sudo/sudoers dest=/etc/
110 - name: install common scripts
112 copy: src=scripts/{{ item }} dest=/usr/local/bin/
114 - fetch-unpack-archive
117 - name: install root Git configuration
119 copy: src=root/gitconfig dest=/root/.gitconfig
121 ###----- That's all, folks --------------------------------------------------