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:
|
||||
- check_versions
|
||||
- lint_playbook
|
||||
- check_and_lint
|
||||
- test_deploy
|
||||
|
||||
|
||||
### BEGIN TEMPLATES ###
|
||||
.tags_template: &tags_template
|
||||
tags:
|
||||
- zen-ci-deb-workstation
|
||||
- zen-ci-deb
|
||||
|
||||
|
||||
.zen_ci_deb_template: &zen_ci_deb_template
|
||||
@ -38,7 +37,7 @@ stages:
|
||||
|
||||
.check_version_template: &check_version_template
|
||||
<<: *tags_template
|
||||
stage: check_versions
|
||||
stage: check_and_lint
|
||||
script:
|
||||
- /bin/hostname
|
||||
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
||||
@ -49,7 +48,7 @@ stages:
|
||||
|
||||
.lint_playbook_template: &lint_playbook_template
|
||||
<<: *tags_template
|
||||
stage: lint_playbook
|
||||
stage: check_and_lint
|
||||
script:
|
||||
- chmod 755 ${ANSIBLE_PLAY_PATH}
|
||||
- ansible-lint -v ${ANSIBLE_PLAY_PATH}/*.yml
|
||||
@ -64,7 +63,6 @@ stages:
|
||||
- ls -ltr
|
||||
- ansible-galaxy install -r roles/requirements.yml
|
||||
- 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/ssl/*
|
||||
- /usr/sbin/nginx -c /etc/nginx/nginx.conf -t
|
||||
|
34
ansible.cfg
34
ansible.cfg
@ -1,13 +1,23 @@
|
||||
[defaults]
|
||||
inventory = inventory/hosts
|
||||
# roles_path = roles/
|
||||
remote_tmp = /tmp/.ansible-${USER}/tmp
|
||||
gathering = smart
|
||||
gather_timeout = 30
|
||||
fact_caching = jsonfile
|
||||
fact_caching_connection = facts.d
|
||||
fact_caching_timeout = 600
|
||||
retry_files_enabled = False
|
||||
forks = 8
|
||||
timeout = 30
|
||||
host_key_checking = False
|
||||
inventory = /home/chris/Development/Ansible/Inventory/ZENventory/zen_inventory.yml
|
||||
roles_path = /home/chris/Development/Ansible/Roles
|
||||
remote_tmp = /tmp/.ansible-${USER}/tmp
|
||||
gathering = smart
|
||||
gather_timeout = 30
|
||||
fact_path = /home/chris/Development/Ansible
|
||||
fact_caching_connection = /home/chris/Development/Ansible
|
||||
fact_caching = jsonfile
|
||||
fact_caching_timeout = 1800
|
||||
retry_files_enabled = False
|
||||
forks = 15
|
||||
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
|
||||
become: yes
|
||||
gather_facts: yes
|
||||
|
||||
- name: Deploy reverse proxy configuration
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: true
|
||||
|
||||
roles:
|
||||
- role: zen_rev_proxy
|
||||
|
Loading…
x
Reference in New Issue
Block a user