From 6c6218d2218e2da36b4936f4a3e8dcf75852262f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 5 Apr 2017 22:03:39 +0000 Subject: [PATCH] switch kojipkgs02 to use varnish instead of squid, leave 01 alone for now --- playbooks/groups/kojipkgs.yml | 2 ++ roles/kojipkgs/tasks/main.yml | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/playbooks/groups/kojipkgs.yml b/playbooks/groups/kojipkgs.yml index d2baa22432..aafcd8e3c1 100644 --- a/playbooks/groups/kojipkgs.yml +++ b/playbooks/groups/kojipkgs.yml @@ -29,6 +29,8 @@ mnt_dir: '/pub' nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' - kojipkgs + - varnish + when: inventory_hostname.startswith('kojipkgs02') tasks: - include: "{{ tasks }}/yumrepos.yml" diff --git a/roles/kojipkgs/tasks/main.yml b/roles/kojipkgs/tasks/main.yml index a732b4ea24..ce545244d0 100644 --- a/roles/kojipkgs/tasks/main.yml +++ b/roles/kojipkgs/tasks/main.yml @@ -6,6 +6,7 @@ tags: - packages - kojipkgs + when: inventory_hostname.startswith('kojipkgs01') - name: install squid server packages package: name={{ item }} state=present @@ -17,11 +18,13 @@ tags: - packages - kojipkgs + when: inventory_hostname.startswith('kojipkgs01') - name: set seboolean for squid server seboolean: name=httpd_can_network_connect state=true persistent=true tags: - kojipkgs + when: inventory_hostname.startswith('kojipkgs01') - name: set seboolean for nfs httpd seboolean: name=httpd_use_nfs state=true persistent=true @@ -37,6 +40,7 @@ - restart squid tags: - kojipkgs + when: inventory_hostname.startswith('kojipkgs01') - name: install apache config files for squid copy: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=644 @@ -71,6 +75,7 @@ - kojipkgs notify: - reload httpd + when: inventory_hostname.startswith('kojipkgs01') - name: Copy squid ssl key from puppet private copy: > @@ -81,9 +86,11 @@ - kojipkgs notify: - reload httpd + when: inventory_hostname.startswith('kojipkgs01') - name: set squid to start on boot service: name=squid enabled=true state=running tags: - services - kojipkgs + when: inventory_hostname.startswith('kojipkgs01')