Compare commits
No commits in common. "9a3210e26e2dfc9b5f5fcda2828cb722c803b83b" and "6250fcc9c093634a479a4ad4575fd5f5bb98bba8" have entirely different histories.
9a3210e26e
...
6250fcc9c0
@ -20,14 +20,15 @@ variables:
|
|||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- check_and_lint
|
- check_versions
|
||||||
|
- lint_playbook
|
||||||
- test_deploy
|
- test_deploy
|
||||||
|
|
||||||
|
|
||||||
### BEGIN TEMPLATES ###
|
### BEGIN TEMPLATES ###
|
||||||
.tags_template: &tags_template
|
.tags_template: &tags_template
|
||||||
tags:
|
tags:
|
||||||
- zen-ci-deb
|
- zen-ci-deb-workstation
|
||||||
|
|
||||||
|
|
||||||
.zen_ci_deb_template: &zen_ci_deb_template
|
.zen_ci_deb_template: &zen_ci_deb_template
|
||||||
@ -37,7 +38,7 @@ stages:
|
|||||||
|
|
||||||
.check_version_template: &check_version_template
|
.check_version_template: &check_version_template
|
||||||
<<: *tags_template
|
<<: *tags_template
|
||||||
stage: check_and_lint
|
stage: check_versions
|
||||||
script:
|
script:
|
||||||
- /bin/hostname
|
- /bin/hostname
|
||||||
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
||||||
@ -48,7 +49,7 @@ stages:
|
|||||||
|
|
||||||
.lint_playbook_template: &lint_playbook_template
|
.lint_playbook_template: &lint_playbook_template
|
||||||
<<: *tags_template
|
<<: *tags_template
|
||||||
stage: check_and_lint
|
stage: lint_playbook
|
||||||
script:
|
script:
|
||||||
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
||||||
- ansible-lint -v ${ANSIBLE_PLAY_PATH}/*.yml
|
- ansible-lint -v ${ANSIBLE_PLAY_PATH}/*.yml
|
||||||
@ -63,6 +64,7 @@ stages:
|
|||||||
- ls -ltr
|
- ls -ltr
|
||||||
- ansible-galaxy install -r roles/requirements.yml
|
- ansible-galaxy install -r roles/requirements.yml
|
||||||
- ansible-playbook -v -i '127.0.0.1,' --connection=local ${ANSIBLE_EXTRA_VARS} ${ANSIBLE_PLAY}
|
- ansible-playbook -v -i '127.0.0.1,' --connection=local ${ANSIBLE_EXTRA_VARS} ${ANSIBLE_PLAY}
|
||||||
|
- git clone git@gitlab.thezengarden.net:zen/le-ssl-certs.git /etc/nginx/ssl
|
||||||
- /bin/ls -l /etc/nginx/conf.d
|
- /bin/ls -l /etc/nginx/conf.d
|
||||||
- /bin/ls -l /etc/nginx/ssl/*
|
- /bin/ls -l /etc/nginx/ssl/*
|
||||||
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
|
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
|
||||||
|
20
ansible.cfg
20
ansible.cfg
@ -1,23 +1,13 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = /home/chris/Development/Ansible/Inventory/ZENventory/zen_inventory.yml
|
inventory = inventory/hosts
|
||||||
roles_path = /home/chris/Development/Ansible/Roles
|
# roles_path = roles/
|
||||||
remote_tmp = /tmp/.ansible-${USER}/tmp
|
remote_tmp = /tmp/.ansible-${USER}/tmp
|
||||||
gathering = smart
|
gathering = smart
|
||||||
gather_timeout = 30
|
gather_timeout = 30
|
||||||
fact_path = /home/chris/Development/Ansible
|
|
||||||
fact_caching_connection = /home/chris/Development/Ansible
|
|
||||||
fact_caching = jsonfile
|
fact_caching = jsonfile
|
||||||
fact_caching_timeout = 1800
|
fact_caching_connection = facts.d
|
||||||
|
fact_caching_timeout = 600
|
||||||
retry_files_enabled = False
|
retry_files_enabled = False
|
||||||
forks = 15
|
forks = 8
|
||||||
timeout = 30
|
timeout = 30
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
display_skipped_hosts = False
|
|
||||||
interpreter_python = auto_silent
|
|
||||||
bin_ansible_callbacks = true
|
|
||||||
callback_enabled = yaml, timer, profile_tasks, profile_roles
|
|
||||||
|
|
||||||
|
|
||||||
[ssh_connection]
|
|
||||||
pipelining = True
|
|
||||||
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o PreferredAuthentications=publickey
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Deploy reverse proxy configuration
|
- hosts: all
|
||||||
hosts: all
|
become: yes
|
||||||
become: true
|
gather_facts: yes
|
||||||
gather_facts: true
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: zen_rev_proxy
|
- role: zen_rev_proxy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user