Goodbye only_if... when is the new thing.
This commit is contained in:
parent
e18d833494
commit
f0a29df52d
5 changed files with 11 additions and 11 deletions
|
@ -21,14 +21,14 @@
|
||||||
src=$files/hotfix/python-fedora/proxyclient.py
|
src=$files/hotfix/python-fedora/proxyclient.py
|
||||||
dest=/usr/lib/python2.6/site-packages/fedora/client/proxyclient.py
|
dest=/usr/lib/python2.6/site-packages/fedora/client/proxyclient.py
|
||||||
owner=root mode=644
|
owner=root mode=644
|
||||||
only_if: "'${ansible_distribution}' == 'RedHat'"
|
when: is_rhel == 'True'
|
||||||
tags:
|
tags:
|
||||||
- hotfix
|
- hotfix
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install nss_db on rhel hosts only
|
- name: install nss_db on rhel hosts only
|
||||||
yum: state=installed name=nss_db
|
yum: state=installed name=nss_db
|
||||||
only_if: "'${ansible_distribution}' == 'RedHat'"
|
when: is_rhel == 'True'
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
|
|
@ -57,24 +57,24 @@
|
||||||
|
|
||||||
- name: /etc/kojid/kojid.conf
|
- name: /etc/kojid/kojid.conf
|
||||||
action: copy src=$files/kojibuilder/kojid.conf dest=/etc/kojid/kojid.conf
|
action: copy src=$files/kojibuilder/kojid.conf dest=/etc/kojid/kojid.conf
|
||||||
only_if: "not '${inventory_hostname}'.startswith(('arm01','arm03'))"
|
when: not inventory_hostname.startswith(('arm01','arm03'))
|
||||||
notify:
|
notify:
|
||||||
- restart kojid
|
- restart kojid
|
||||||
|
|
||||||
|
|
||||||
- name: arm /etc/kojid/kojid.conf
|
- name: arm /etc/kojid/kojid.conf
|
||||||
action: copy src=$files/kojibuilder/arm-kojid.conf dest=/etc/kojid/kojid.conf
|
action: copy src=$files/kojibuilder/arm-kojid.conf dest=/etc/kojid/kojid.conf
|
||||||
only_if: "'${inventory_hostname}'.startswith(('arm01','arm03'))"
|
when: inventory_hostname.startswith(('arm01','arm03'))
|
||||||
notify:
|
notify:
|
||||||
- restart kojid
|
- restart kojid
|
||||||
|
|
||||||
- name: /etc/koji/koji.conf
|
- name: /etc/koji/koji.conf
|
||||||
action: copy src=$files/kojibuilder/koji.conf dest=/etc/koji.conf
|
action: copy src=$files/kojibuilder/koji.conf dest=/etc/koji.conf
|
||||||
only_if: "not '${inventory_hostname}'.startswith(('arm01','arm03'))"
|
when: not inventory_hostname.startswith(('arm01','arm03'))
|
||||||
|
|
||||||
- name: /etc/koji/koji.conf
|
- name: /etc/koji/koji.conf
|
||||||
action: copy src=$files/kojibuilder/arm-koji.conf dest=/etc/koji.conf
|
action: copy src=$files/kojibuilder/arm-koji.conf dest=/etc/koji.conf
|
||||||
only_if: "'${inventory_hostname}'.startswith(('arm01','arm03'))"
|
when: inventory_hostname.startswith(('arm01','arm03'))
|
||||||
|
|
||||||
- name: copy over koji ca cert
|
- name: copy over koji ca cert
|
||||||
action: copy src=$private/files/koji/buildercerts/fedora-ca.cert dest=/etc/kojid/cacert.pem
|
action: copy src=$private/files/koji/buildercerts/fedora-ca.cert dest=/etc/kojid/cacert.pem
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
|
|
||||||
- name: mock site-defaults.cfg
|
- name: mock site-defaults.cfg
|
||||||
action: copy src=$files/kojibuilder/builders/site-defaults.cfg dest=/etc/mock/site-defaults.cfg mode=0644 owner=root group=mock
|
action: copy src=$files/kojibuilder/builders/site-defaults.cfg dest=/etc/mock/site-defaults.cfg mode=0644 owner=root group=mock
|
||||||
only_if: "not '${inventory_hostname}'.startswith(('bkernel'))"
|
when: not inventory_hostname.startswith(('bkernel')
|
||||||
|
|
||||||
- name: ntp steptickers
|
- name: ntp steptickers
|
||||||
action: copy src=$files/common/step-tickers dest=/etc/ntp/step-tickers
|
action: copy src=$files/common/step-tickers dest=/etc/ntp/step-tickers
|
||||||
|
|
|
@ -139,12 +139,12 @@
|
||||||
# put cron job in for branched compose
|
# put cron job in for branched compose
|
||||||
- name: branched compose cron
|
- name: branched compose cron
|
||||||
action: copy src=$files/releng/branched dest=/etc/cron.d/branched
|
action: copy src=$files/releng/branched dest=/etc/cron.d/branched
|
||||||
only_if: "'${inventory_hostname}'.startswith('releng01')"
|
when: inventory_hostname.startswith('releng01')
|
||||||
|
|
||||||
# put cron job in for rawhide compose
|
# put cron job in for rawhide compose
|
||||||
- name: rawhide compose cron
|
- name: rawhide compose cron
|
||||||
action: copy src=$files/releng/rawhide dest=/etc/cron.d/rawhide
|
action: copy src=$files/releng/rawhide dest=/etc/cron.d/rawhide
|
||||||
only_if: "'${inventory_hostname}'.startswith('releng02')"
|
when: inventory_hostname.startswith('releng02')
|
||||||
|
|
||||||
- name: sudoers defaults
|
- name: sudoers defaults
|
||||||
action: copy src=$private/files/sudo/releng-sudoers dest=/etc/sudoers mode=0440
|
action: copy src=$private/files/sudo/releng-sudoers dest=/etc/sudoers mode=0440
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
- name: upstart serial setup
|
- name: upstart serial setup
|
||||||
action: copy src=$files/common/ttyS0.conf dest=/etc/init/ttyS0.conf
|
action: copy src=$files/common/ttyS0.conf dest=/etc/init/ttyS0.conf
|
||||||
only_if: '$is_rhel'
|
when: is_rhel == 'True'
|
||||||
tags:
|
tags:
|
||||||
- configs
|
- configs
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
action: copy src=$files/sign/$item dest=/etc/yum.repos.d/$item
|
action: copy src=$files/sign/$item dest=/etc/yum.repos.d/$item
|
||||||
with_items:
|
with_items:
|
||||||
- builder-rpms.repo
|
- builder-rpms.repo
|
||||||
only_if: '$is_rhel'
|
when: is_rhel == 'True'
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- packages
|
- packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue