From ec74b9d4877a81255b146872936f991081dda87e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sat, 6 Dec 2014 20:56:32 +0100 Subject: [PATCH] Restructure a bit the secondary01 playbook --- .../secondary01.phx2.fedoraproject.org.yml | 45 +++++++++---------- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/playbooks/hosts/secondary01.phx2.fedoraproject.org.yml b/playbooks/hosts/secondary01.phx2.fedoraproject.org.yml index 97c51c1ad1..1177008822 100644 --- a/playbooks/hosts/secondary01.phx2.fedoraproject.org.yml +++ b/playbooks/hosts/secondary01.phx2.fedoraproject.org.yml @@ -49,7 +49,7 @@ } - { role: nfs/client, when: datacenter == "phx2", - mnt_dir: '/srv/pub/fedora-secondary', + mnt_dir: '/srv/pub/fedora-secondary', nfs_src_dir: '/vol/fedora_ftp/fedora.redhat.com/pub/fedora-secondary' } @@ -60,32 +60,27 @@ handlers: - include: "{{ handlers }}/restart_services.yml" -- name: clean yum metadata +- name: Set up the rest of the box as desired hosts: secondary01 user: root - gather_facts: False - action: yum clean all - tags: - - packages + gather_facts: True -- name: install needed packages - hosts: secondary01 - user: root - gather_facts: False - yum: pkg={{ item }} state=present - with_items: - - nfs-utils - - koji - tags: - - packages + - name: clean yum metadata + action: yum clean all + tags: + - packages -- name: set sebooleans so httpd can use nfs - hosts: secondary01 - user: root - gather_facts: False - action: seboolean name={{ item }} - state=true - persistent=true - with_items: - - httpd_use_nfs + - name: install needed packages + yum: pkg={{ item }} state=present + with_items: + - nfs-utils + - koji + tags: + - packages + - name: set sebooleans so httpd can use nfs + action: seboolean name={{ item }} + state=true + persistent=true + with_items: + - httpd_use_nfs