Skip to content
Snippets Groups Projects
Commit a9d53dd9 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#19 Set role header

parent bc232aa4
No related branches found
No related tags found
No related merge requests found
--- ---
# file: roles/commonkeys/tasks/main.yml # file: roles/commonkeys/tasks/main.yml
- name: "Reset all hosts" - name: "Common Keys Role"
include: reset.yml set_fact: role_commonkeys_started=true
with_items: '{{ groups.all }}' tags: always
loop_control:
loop_var: hostname
when: hostname != "localhost" and inventory_hostname != "localhost"
- name: "Tunnel keys" - block:
include: tunnel_keys.yml
- name: "User keys" - name: "Reset all hosts"
include: user_keys.yml include: reset.yml
with_flattened: with_items: '{{ groups.all }}'
- '{{ admins }}' loop_control:
- '{{ jailusers }}' loop_var: hostname
loop_control: when: hostname != "localhost" and inventory_hostname != "localhost"
loop_var: username
tags: 'Keys' - name: "Tunnel keys"
include: tunnel_keys.yml
- name: "User keys"
include: user_keys.yml
with_flattened:
- '{{ admins }}'
- '{{ jailusers }}'
loop_control:
loop_var: username
tags: 'Keys'
when: '"commonkeys" not in excluded_roles'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment