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

ansible-playbooks/general#85 Linting [skip-ci]

parent 06909679
No related branches found
No related tags found
No related merge requests found
---
tunnel_user_name: systunnel
jailusers: []
......
......@@ -3,61 +3,61 @@
- name: Common Auth Role
set_fact:
role_commonauth_started: true
role_commonauth_started: yes
tags:
- always
- block:
- name: Set default facts
set_fact:
append: yes
tags:
- always
- name: Set reset facts
set_fact:
append: no
tags:
- Reset
- name: Init Gropus
include_tasks: initgroups.yml
with_items: '{{ drupal_settings|default([]) }}'
loop_control:
loop_var: drupal
tags:
- SetPermissions
- name: Init Users
include_tasks: inituser.yml
with_flattened:
- {{ admins }}
- {{ jailusers }}
loop_control:
loop_var: username
tags:
- SetPermissions
- name: Ensure Extra Users
user:
name: '{{ item.username }}'
with_items: '{{ auth_keys|default([]) }}'
tags:
- Keys
- name: Install Public Key For Extra Users
authorized_key:
user: '{{ item.username }}'
key: "{{ lookup('file', inventory_dir + '/files/keys/' + item.keyname + '.d2s.pub') }}"
with_items: '{{ auth_keys|default([]) }}'
tags:
- Keys
- name: Remember that this role had been run
set_fact:
role_commonauth_completed: true
tags:
- always
- name: Set default facts
set_fact:
append: yes
tags:
- always
- name: Set reset facts
set_fact:
append: no
tags:
- Reset
- name: Init Gropus
include_tasks: initgroups.yml
with_items: '{{ drupal_settings|default([]) }}'
loop_control:
loop_var: drupal
tags:
- SetPermissions
- name: Init Users
include_tasks: inituser.yml
with_flattened:
- {{ admins }}
- {{ jailusers }}
loop_control:
loop_var: username
tags:
- SetPermissions
- name: Ensure Extra Users
user:
name: '{{ item.username }}'
with_items: '{{ auth_keys|default([]) }}'
tags:
- Keys
- name: Install Public Key For Extra Users
authorized_key:
user: '{{ item.username }}'
key: "{{ lookup('file', inventory_dir + '/files/keys/' + item.keyname + '.d2s.pub') }}"
with_items: '{{ auth_keys|default([]) }}'
tags:
- Keys
- name: Remember that this role had been run
set_fact:
role_commonauth_completed: yes
tags:
- always
when: not excluded_roles or "commonauth" not in excluded_roles and role_commonauth_completed is not defined
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment