0.1.15-DEV-20191117-205920
--------------------------
* ADD:
- add tags to each task
- added clean deploy task for site removals; will only run if task tag is used
- added tower2.thezengarden.net to site list for testing awx installs/upgrades
* MODIFY:
- modified awx site reference to be tower
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
- name: alter package list for centos
|
||||
set_fact:
|
||||
proxy_package_list: ['nginx','git']
|
||||
tags: always
|
||||
when: ansible_distribution == "CentOS"
|
||||
|
||||
|
||||
@ -10,20 +11,30 @@
|
||||
package:
|
||||
name : "{{ proxy_package_list }}"
|
||||
state : present
|
||||
tags: always
|
||||
|
||||
|
||||
- name: enable nginx at boot time
|
||||
service:
|
||||
name : nginx
|
||||
enabled : yes
|
||||
tags: always
|
||||
when: ansible_virtualization_type != "docker"
|
||||
|
||||
|
||||
- name: clean conf.d
|
||||
file:
|
||||
path: "{{ proxy_site_conf_dir }}"
|
||||
state: absent
|
||||
tags: ['clean_deploy','never']
|
||||
|
||||
|
||||
- name: create conf.d directory
|
||||
file:
|
||||
path : "{{ proxy_site_conf_dir }}"
|
||||
state : directory
|
||||
mode : 0755
|
||||
tags: always
|
||||
|
||||
|
||||
- name: create log directory
|
||||
@ -31,6 +42,7 @@
|
||||
path : "{{ proxy_site_log_path }}"
|
||||
state : directory
|
||||
mode : 0755
|
||||
tags: always
|
||||
|
||||
|
||||
- name: clone ssl certs
|
||||
@ -38,6 +50,7 @@
|
||||
repo: "{{ ssl_repo }}"
|
||||
dest: "{{ proxy_site_ssl_directory }}"
|
||||
version: "{{ ssl_repo_branch }}"
|
||||
tags: always
|
||||
notify: restart nginx
|
||||
|
||||
|
||||
@ -48,6 +61,7 @@
|
||||
mode : 0644
|
||||
with_dict:
|
||||
- "{{ proxy_sites }}"
|
||||
tags: always
|
||||
notify: restart nginx
|
||||
|
||||
|
||||
@ -55,4 +69,5 @@
|
||||
service:
|
||||
name : nginx
|
||||
state : started
|
||||
tags: always
|
||||
when: ansible_virtualization_type != "docker"
|
||||
Reference in New Issue
Block a user