switch kojipkgs02 to use varnish instead of squid, leave 01 alone for now

This commit is contained in:
Kevin Fenzi 2017-04-05 22:03:39 +00:00
parent fc0a6e176f
commit 6c6218d221
2 changed files with 9 additions and 0 deletions

View file

@ -29,6 +29,8 @@
mnt_dir: '/pub' mnt_dir: '/pub'
nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub'
- kojipkgs - kojipkgs
- varnish
when: inventory_hostname.startswith('kojipkgs02')
tasks: tasks:
- include: "{{ tasks }}/yumrepos.yml" - include: "{{ tasks }}/yumrepos.yml"

View file

@ -6,6 +6,7 @@
tags: tags:
- packages - packages
- kojipkgs - kojipkgs
when: inventory_hostname.startswith('kojipkgs01')
- name: install squid server packages - name: install squid server packages
package: name={{ item }} state=present package: name={{ item }} state=present
@ -17,11 +18,13 @@
tags: tags:
- packages - packages
- kojipkgs - kojipkgs
when: inventory_hostname.startswith('kojipkgs01')
- name: set seboolean for squid server - name: set seboolean for squid server
seboolean: name=httpd_can_network_connect state=true persistent=true seboolean: name=httpd_can_network_connect state=true persistent=true
tags: tags:
- kojipkgs - kojipkgs
when: inventory_hostname.startswith('kojipkgs01')
- name: set seboolean for nfs httpd - name: set seboolean for nfs httpd
seboolean: name=httpd_use_nfs state=true persistent=true seboolean: name=httpd_use_nfs state=true persistent=true
@ -37,6 +40,7 @@
- restart squid - restart squid
tags: tags:
- kojipkgs - kojipkgs
when: inventory_hostname.startswith('kojipkgs01')
- name: install apache config files for squid - name: install apache config files for squid
copy: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=644 copy: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=644
@ -71,6 +75,7 @@
- kojipkgs - kojipkgs
notify: notify:
- reload httpd - reload httpd
when: inventory_hostname.startswith('kojipkgs01')
- name: Copy squid ssl key from puppet private - name: Copy squid ssl key from puppet private
copy: > copy: >
@ -81,9 +86,11 @@
- kojipkgs - kojipkgs
notify: notify:
- reload httpd - reload httpd
when: inventory_hostname.startswith('kojipkgs01')
- name: set squid to start on boot - name: set squid to start on boot
service: name=squid enabled=true state=running service: name=squid enabled=true state=running
tags: tags:
- services - services
- kojipkgs - kojipkgs
when: inventory_hostname.startswith('kojipkgs01')