buildvm / staging: only run fasClient and sudo in production

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-09-04 09:19:40 -07:00
parent d6c6500581
commit 3e65ed07b4

View file

@ -58,8 +58,8 @@
nfs_src_dir: 'fedora_ostree_content_stg/compose/ostree'
when: env == 'staging' and 'runroot' in group_names and not inventory_hostname.startswith('buildvm-s390x')
- { role: fas_client, when: not inventory_hostname.startswith('bkernel') }
- { role: sudo, when: not inventory_hostname.startswith('bkernel') }
- { role: fas_client, when: not inventory_hostname.startswith('bkernel') and env == 'production' }
- { role: sudo, when: not inventory_hostname.startswith('bkernel') and env == 'production' }
- koji_builder
- role: keytab/service
kt_location: /etc/kojid/kojid.keytab
@ -86,9 +86,9 @@
tasks:
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
when: not inventory_hostname.startswith('bkernel')
when: not inventory_hostname.startswith('bkernel') and env == 'production'
- import_tasks: "{{ tasks_path }}/motd.yml"
when: not inventory_hostname.startswith('bkernel')
when: not inventory_hostname.startswith('bkernel') and env == 'production'
# - name: make sure kojid is running
# service: name=kojid state=started enabled=yes