ansible-lint fixes for host group playbooks

This commit is contained in:
Timo Makinen 2022-10-31 18:02:19 +00:00
parent 112d51c67f
commit 2e97e2af9e
28 changed files with 281 additions and 204 deletions

View file

@ -1,7 +1,9 @@
---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=collab"
- name: Deploy KVM virtual machines
ansible.builtin.import_playbook: >-
include/deploy-kvm-guest.yml myhosts=collab
- name: configure instance
- name: Configure instance
hosts: collab
user: root
gather_facts: true
@ -10,8 +12,8 @@
- "{{ ansible_private }}/vars.yml"
pre_tasks:
- name: mount /export
mount:
- name: Mount /export
ansible.posix.mount:
name: /export
src: LABEL=/export
fstype: xfs
@ -31,8 +33,8 @@
- ldap
tasks:
- name: redirect root web directory to collab
copy:
- name: Redirect root web directory to collab
ansible.builtin.copy:
content: "RedirectMatch permanent \"^/$\" /collab/\n"
dest: "/etc/httpd/conf.local.d/redirects.conf"
mode: 0644
@ -40,8 +42,8 @@
group: "{{ ansible_wheel }}"
notify: Restart apache
- name: create htaccess for collab
copy:
- name: Create htaccess for collab
ansible.builtin.copy:
content: |
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
@ -62,20 +64,22 @@
seuser: _default
setype: _default
- name: auto create collab users
lineinfile:
- name: Auto create collab users
ansible.builtin.lineinfile:
path: /srv/wikis/collab/config/collabfarm.py
regexp: '^\s+auth = .*'
line: ' auth = [GivenAuth(autocreate=True)]'
notify: Restart apache
- name: set collab base url
lineinfile:
- name: Set collab base url
ansible.builtin.lineinfile:
path: /srv/wikis/collab/config/collabfarm.py
regexp: '^\s+collab_baseurl = .*'
line: " collab_baseurl = 'https://collab.foo.sh/collab/'"
notify: Restart apache
- name: set collab default theme
lineinfile:
- name: Set collab default theme
ansible.builtin.lineinfile:
path: /srv/wikis/collab/config/collabfarm.py
regexp: '^\s+theme_default = .*'
line: " theme_default = 'foosh'"