X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-ansible/blobdiff_plain/90f05477844d2f94c3e104ef655e23fcb5fab229..9b7aea2fd71ae70e8386ab64b79c6d7a085c92dc:/roles/common/tasks/main.yml diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index e740eaa..42bc86c 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -47,7 +47,7 @@ ### Network databases. - name: install netdb files - tags: netdb + tags: [netdb] copy: src=netdb/{{ item }} dest=/etc/ with_items: - hosts @@ -60,13 +60,19 @@ - name: install SSH configuration files tags: [ssh, ssh-config] copy: src=ssh-config/{{ item }} dest=/etc/ssh/ - notify: restart ssh + notify: + - make in /etc/ssh/ + - restart ssh with_items: - Makefile - ssh_config - sshd_config.m4 - moduli +- name: "create root's .ssh/ directory" + tags: [ssh, ssh-root] + file: path=/root/.ssh/ state=directory mode=0750 + - name: install main keys for root SSH access tags: [ssh, ssh-root] template: src=ssh-root/authkeys.base dest=/root/.ssh/authkeys.base