diff --git a/README.md b/README.md index c3f717a..49a723d 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,13 @@ To provision the infrastructure execute the playbook: ansible-playbook comanage_registry_training.yml ``` +To reconfigure only the training nodes once they have already +been provisioned: + +``` +ansible-playbook training_nodes.yml --tags training_nodes +``` + ## SSH Access Trainers may use their provisioned SSH keys to access all nodes. Each trainer diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml deleted file mode 100644 index 3be4274..0000000 --- a/roles/common/handlers/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- - - name: restart sshd - systemd: - name: sshd - state: restarted diff --git a/roles/common/tasks/users.yml b/roles/common/tasks/users.yml index 532e2df..a86007f 100644 --- a/roles/common/tasks/users.yml +++ b/roles/common/tasks/users.yml @@ -4,8 +4,11 @@ path: /etc/ssh/sshd_config regexp: '^PasswordAuthentication' line: PasswordAuthentication yes - notify: - - restart sshd + + - name: Restart sshd + systemd: + name: sshd + state: restarted - name: Passwordless sudo lineinfile: diff --git a/training_nodes.yml b/training_nodes.yml index 678bf7b..c8cb600 100644 --- a/training_nodes.yml +++ b/training_nodes.yml @@ -249,7 +249,13 @@ - import_role: name: common + tags: + - training_nodes - import_role: name: swarm + tags: + - training_nodes - import_role: name: training + tags: + - training_nodes