File tree Expand file tree Collapse file tree
content-domain-certs/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : " swarm-manager"
22
33# container_kill_start settings
4- container_image : swarm
5- container_tag : 1.2.0
4+ container_image : soft- swarm
5+ container_tag : latest
66
77container_run_opts : >
88 -d
Original file line number Diff line number Diff line change 2626 - role : nginx-proxied-service
2727 nginx_host : " {{ groups['userland'][0] }}"
2828 target_ip_address : " {{ hostvars[groups['navi'][0]]['ansible_default_ipv4']['address'] }}"
29- templates : [ 01 -navi.conf ]
29+ templates : [ 69 -navi.conf ]
3030 nginx_config : proxy
Original file line number Diff line number Diff line change 99- name : put certs in place
1010 tags : [ certs ]
1111 become : true
12+ register : add_certs
1213 copy :
1314 src : " {{ user_content_domain }}/{{ item }}"
1415 dest : /etc/ssl/certs/{{ user_content_domain }}/{{ item }}
2324- name : create chained cert
2425 tags : [ certs ]
2526 become : true
27+ when : add_certs.changed
2628 shell : >
2729 cat
2830 /etc/ssl/certs/{{ user_content_domain }}/cert.pem
Original file line number Diff line number Diff line change 33- name : get socket server ports
44 tags : [ configure_proxy, deploy ]
55 become : true
6+ when : hosted_ports is defined
67 shell : |
78 for c in $(docker ps | awk '/{{ name }}/{ print $1 }'); do
8- {% if hosted_ports is defined %}
9- {% for hosted_port in hosted_ports %}
9+ {% for hosted_port in hosted_ports %}
1010 docker port $c {{ hosted_port }} | cut -d ':' -f 2
11- {% endfor %}
12- {% endif %}
11+ {% endfor %}
1312 done
1413 args :
1514 executable : /bin/bash
File renamed without changes.
You can’t perform that action at this time.
0 commit comments