Compare commits
10 Commits
6250fcc9c0
...
9a3210e26e
Author | SHA1 | Date | |
---|---|---|---|
9a3210e26e | |||
86f41f09df | |||
30cde13cb9 | |||
922bd3cf86 | |||
aa82631b8a | |||
af5424d264 | |||
bddea455c6 | |||
76e9da039e | |||
f3ba2f526b | |||
3d8fab2d2c |
@ -20,15 +20,14 @@ variables:
|
|||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- check_versions
|
- check_and_lint
|
||||||
- lint_playbook
|
|
||||||
- test_deploy
|
- test_deploy
|
||||||
|
|
||||||
|
|
||||||
### BEGIN TEMPLATES ###
|
### BEGIN TEMPLATES ###
|
||||||
.tags_template: &tags_template
|
.tags_template: &tags_template
|
||||||
tags:
|
tags:
|
||||||
- zen-ci-deb-workstation
|
- zen-ci-deb
|
||||||
|
|
||||||
|
|
||||||
.zen_ci_deb_template: &zen_ci_deb_template
|
.zen_ci_deb_template: &zen_ci_deb_template
|
||||||
@ -38,7 +37,7 @@ stages:
|
|||||||
|
|
||||||
.check_version_template: &check_version_template
|
.check_version_template: &check_version_template
|
||||||
<<: *tags_template
|
<<: *tags_template
|
||||||
stage: check_versions
|
stage: check_and_lint
|
||||||
script:
|
script:
|
||||||
- /bin/hostname
|
- /bin/hostname
|
||||||
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
||||||
@ -49,7 +48,7 @@ stages:
|
|||||||
|
|
||||||
.lint_playbook_template: &lint_playbook_template
|
.lint_playbook_template: &lint_playbook_template
|
||||||
<<: *tags_template
|
<<: *tags_template
|
||||||
stage: lint_playbook
|
stage: check_and_lint
|
||||||
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
|
||||||
@ -64,7 +63,6 @@ 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
|
||||||
|
34
ansible.cfg
34
ansible.cfg
@ -1,13 +1,23 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = inventory/hosts
|
inventory = /home/chris/Development/Ansible/Inventory/ZENventory/zen_inventory.yml
|
||||||
# roles_path = roles/
|
roles_path = /home/chris/Development/Ansible/Roles
|
||||||
remote_tmp = /tmp/.ansible-${USER}/tmp
|
remote_tmp = /tmp/.ansible-${USER}/tmp
|
||||||
gathering = smart
|
gathering = smart
|
||||||
gather_timeout = 30
|
gather_timeout = 30
|
||||||
fact_caching = jsonfile
|
fact_path = /home/chris/Development/Ansible
|
||||||
fact_caching_connection = facts.d
|
fact_caching_connection = /home/chris/Development/Ansible
|
||||||
fact_caching_timeout = 600
|
fact_caching = jsonfile
|
||||||
retry_files_enabled = False
|
fact_caching_timeout = 1800
|
||||||
forks = 8
|
retry_files_enabled = False
|
||||||
timeout = 30
|
forks = 15
|
||||||
host_key_checking = False
|
timeout = 30
|
||||||
|
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 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- name: Deploy reverse proxy configuration
|
||||||
become: yes
|
hosts: all
|
||||||
gather_facts: yes
|
become: true
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: zen_rev_proxy
|
- role: zen_rev_proxy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user