chiark / gitweb /
roles/common/tasks/main.yml: Missing brackets around tags list.
[distorted-ansible] / roles / common / tasks / main.yml
index 9c2f2f1e8631e4c8ea6e21d103ef1b3fb2dc21e2..42bc86c80c8cf1d8e0f76f3caee4dec9490d4fc7 100644 (file)
@@ -9,7 +9,7 @@
 
 - name: fix permissions in /root
   tags: [perms, root-perms]
-  file: name=/root mode=0750 owner=root group=root
+  file: path=/root/ mode=0750 owner=root group=root
 
 ###--------------------------------------------------------------------------
 ### PKI machinery.
@@ -47,7 +47,7 @@
 ### Network databases.
 
 - name: install netdb files
-  tags: netdb
+  tags: [netdb]
   copy: src=netdb/{{ item }} dest=/etc/
   with_items:
     - hosts
 - 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
-  notify: make in /root/.ssh
+  notify: make in /root/.ssh/
 
 - name: install keys for root SSH access
   tags: [ssh, ssh-root]
   copy: src=ssh-root/{{ item }} dest=/root/.ssh/
-  notify: make in /root/.ssh
+  notify: make in /root/.ssh/
   with_items:
     - Makefile
     - config.m4