More idempotent
This commit is contained in:
parent
d17fd8236a
commit
dfa9e5339e
2 changed files with 18 additions and 5 deletions
|
@ -89,8 +89,12 @@
|
||||||
action: service name=kojid enabled=on
|
action: service name=kojid enabled=on
|
||||||
# action: service name=kojid enabled=on state=started
|
# action: service name=kojid enabled=on state=started
|
||||||
|
|
||||||
- name: copy over authorized keys for root
|
- name: add root ssh key
|
||||||
action: copy src="{{ files }}/kojibuilder/root_auth_keys" dest=/root/.ssh/authorized_keys mode=644
|
authorized_key: user=root key="{{ item }}"
|
||||||
|
with_file:
|
||||||
|
- "{{ files }}/kojibuilder/root_auth_keys"
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
|
||||||
# idmapd and make sure it's set to run
|
# idmapd and make sure it's set to run
|
||||||
- name: idmapd.conf
|
- name: idmapd.conf
|
||||||
|
@ -100,16 +104,19 @@
|
||||||
- name: enable nfs-related services and run them
|
- name: enable nfs-related services and run them
|
||||||
action: service name={{ item }} enabled=true state=started
|
action: service name={{ item }} enabled=true state=started
|
||||||
with_items:
|
with_items:
|
||||||
- rpcidmapd
|
|
||||||
- rpcbind
|
|
||||||
- nfs
|
- nfs
|
||||||
- nfslock
|
|
||||||
|
|
||||||
- name: route config for netapp network
|
- name: route config for netapp network
|
||||||
action: copy src="{{ files }}/kojibuilder/route-eth1" dest=/etc/sysconfig/network-scripts/route-eth1
|
action: copy src="{{ files }}/kojibuilder/route-eth1" dest=/etc/sysconfig/network-scripts/route-eth1
|
||||||
|
|
||||||
|
- name: check for netapp route
|
||||||
|
command: ip route show
|
||||||
|
register: netapproute
|
||||||
|
always_run: yes
|
||||||
|
|
||||||
- name: run netapp route
|
- name: run netapp route
|
||||||
command: /etc/sysconfig/network-scripts/ifup-routes eth1
|
command: /etc/sysconfig/network-scripts/ifup-routes eth1
|
||||||
|
when: netapproute.stdout.find('10.5.88.0') != -1
|
||||||
|
|
||||||
- name: nfs mount points
|
- name: nfs mount points
|
||||||
action: mount name=/mnt/fedora_koji src=vtap-fedora-nfs01.storage.phx2.redhat.com:/vol/fedora_koji fstype=nfs opts=ro,hard,bg,intr,noatime,nodev,nosuid passno=0 dump=0 state=mounted
|
action: mount name=/mnt/fedora_koji src=vtap-fedora-nfs01.storage.phx2.redhat.com:/vol/fedora_koji fstype=nfs opts=ro,hard,bg,intr,noatime,nodev,nosuid passno=0 dump=0 state=mounted
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
#- name: set kernel params for loopback partitioning
|
#- name: set kernel params for loopback partitioning
|
||||||
# action: command /sbin/grubby --update-kernel=ALL --args=loop.max_part=256
|
# action: command /sbin/grubby --update-kernel=ALL --args=loop.max_part=256
|
||||||
|
#
|
||||||
|
- name: check for max_loop
|
||||||
|
command: grep max_loop /etc/grub2.cfg
|
||||||
|
register: max_loop
|
||||||
|
always_run: yes
|
||||||
|
|
||||||
- name: set kernel params for more loops
|
- name: set kernel params for more loops
|
||||||
action: command /sbin/grubby --update-kernel=ALL --args=max_loop=64
|
action: command /sbin/grubby --update-kernel=ALL --args=max_loop=64
|
||||||
|
when: max_loop.stdout.find('max_loop=64') != -1
|
||||||
|
|
||||||
- name: special pkgs for the x86_64 builders
|
- name: special pkgs for the x86_64 builders
|
||||||
yum: state=installed pkg={{ item }}
|
yum: state=installed pkg={{ item }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue