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

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

parent 6150e8b9
No related branches found
No related tags found
No related merge requests found
---
tunnel_user_name: systunnel tunnel_user_name: systunnel
...@@ -3,54 +3,54 @@ ...@@ -3,54 +3,54 @@
- name: Common Connect Role - name: Common Connect Role
set_fact: set_fact:
role_commonconnect_started: true role_commonconnect_started: yes
tags: tags:
- always - always
- block: - block:
- name: Create The /etc/hosts File - name: Create The /etc/hosts File
template: template:
src: etc_hosts.jinja2 src: etc_hosts.jinja2
dest: /etc/hosts dest: /etc/hosts
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
- name: Copy SSH Config For Server-To-Server Communication For Admins - name: Copy SSH Config For Server-To-Server Communication For Admins
template: template:
src: ssh_config.jinja2 src: ssh_config.jinja2
dest: /home/{{ item }}/.ssh/config dest: /home/{{ item }}/.ssh/config
owner: '{{ item }}' owner: '{{ item }}'
group: root group: root
mode: 0644 mode: 0644
with_flattened: with_flattened:
- {{ admins|default([]) }} - '{{ admins|default([]) }}'
- {{ jailusers|default([]) }} - '{{ jailusers|default([]) }}'
- block: - block:
- name: Read available variable cache files - name: Read available variable cache files
shell: ls ~/.ansible/hostvars shell: ls ~/.ansible/hostvars
become: no become: no
register: variable_files register: variable_files
failed_when: false failed_when: no
changed_when: false changed_when: no
ignore_errors: true ignore_errors: yes
tags:
- always
- include_tasks: more.yml
with_items: '{{ variable_files.stdout_lines|default([]) }}'
loop_control:
loop_var: inventory_name
when: lookup('pipe','hostname') == inventory_hostname
- name: Remember that this role had been run
set_fact:
role_commonconnect_completed: yes
tags: tags:
- always - always
- include_tasks: more.yml
with_items: '{{ variable_files.stdout_lines|default([]) }}'
loop_control:
loop_var: inventory_name
when: lookup('pipe','hostname') == inventory_hostname
- name: Remember that this role had been run
set_fact:
role_commonconnect_completed: true
tags:
- always
when: not excluded_roles or "commonconnect" not in excluded_roles and role_commonconnect_completed is not defined when: not excluded_roles or "commonconnect" not in excluded_roles and role_commonconnect_completed is not defined
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