Appease yamllint on a couple of files

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2024-07-11 15:57:14 +02:00
parent b8ea561123
commit 76c562df3f
2 changed files with 13 additions and 9 deletions

View file

@ -1,3 +1,4 @@
---
# Create a people server # Create a people server
# #
# #
@ -8,7 +9,7 @@
- name: make the box be real - name: make the box be real
hosts: people hosts: people
user: root user: root
gather_facts: True gather_facts: yes
vars_files: vars_files:
- /srv/web/infra/ansible/vars/global.yml - /srv/web/infra/ansible/vars/global.yml
@ -63,7 +64,8 @@
roles: roles:
- base - base
- collectd/base - collectd/base
- { role: openvpn/client, when: env != "staging" } - role: openvpn/client
when: env != "staging"
- ipa/client - ipa/client
- hosts - hosts
- nagios_client - nagios_client

View file

@ -175,8 +175,9 @@
- name: set the SELinux policy for the planet dir - name: set the SELinux policy for the planet dir
command: semanage fcontext -a -t httpd_sys_content_t "/srv/planet(/.*)?" command: semanage fcontext -a -t httpd_sys_content_t "/srv/planet(/.*)?"
when: gitcontext.stdout.find('httpd_sys_content_t') == -1 when: >-
when: inventory_hostname.startswith('people02') gitcontext.stdout.find('httpd_sys_content_t') == -1
and inventory_hostname.startswith('people02')
tags: tags:
- config - config
- selinux - selinux
@ -217,7 +218,8 @@
# It's also safe to aways run. # It's also safe to aways run.
# #
- name: set quotas for people who have more set - name: set quotas for people who have more set
command: xfs_quota -x -c 'limit bsoft={{ item.quota }} bhard={{ item.quota }} {{ item.user }}' /srv command: >-
xfs_quota -x -c 'limit bsoft={{ item.quota }} bhard={{ item.quota }} {{ item.user }}' /srv
with_items: with_items:
- {user: adamwill, quota: 8g} - {user: adamwill, quota: 8g}
- {user: apache, quota: 1000g} - {user: apache, quota: 1000g}