Commit 3e49a77e authored by nanahira's avatar nanahira

always setconf

parent 62aef8a2
...@@ -27,10 +27,9 @@ ...@@ -27,10 +27,9 @@
src: wg-setconf.conf.j2 src: wg-setconf.conf.j2
dest: '/tmp/{{conn.name}}-setconf.conf' dest: '/tmp/{{conn.name}}-setconf.conf'
register: 'wg_setconf_result' register: 'wg_setconf_result'
when: 'not wg_enable_result.changed and not wg_conf_result.changed'
ignore_errors: true ignore_errors: true
- name: '{{conn.name}}: wg setconf' - name: '{{conn.name}}: wg setconf'
become: true become: true
ignore_errors: true ignore_errors: true
shell: 'wg setconf {{conn.name}} /tmp/{{conn.name}}-setconf.conf' shell: 'wg setconf {{conn.name}} /tmp/{{conn.name}}-setconf.conf'
when: 'not wg_enable_result.changed and not wg_conf_result.changed and wg_setconf_result.changed' when: 'wg_setconf_result.changed'
...@@ -35,9 +35,8 @@ ...@@ -35,9 +35,8 @@
src: wgfrp-setconf.conf.j2 src: wgfrp-setconf.conf.j2
dest: '/tmp/{{conn.name}}-setconf.conf' dest: '/tmp/{{conn.name}}-setconf.conf'
register: 'wg_setconf_result' register: 'wg_setconf_result'
when: 'not wg_enable_result.changed and not wg_conf_result.changed'
- name: '{{conn.name}}: wg setconf' - name: '{{conn.name}}: wg setconf'
become: true become: true
ignore_errors: true ignore_errors: true
shell: 'wg setconf {{conn.name}} /tmp/{{conn.name}}-setconf.conf' shell: 'wg setconf {{conn.name}} /tmp/{{conn.name}}-setconf.conf'
when: 'not wg_enable_result.changed and not wg_conf_result.changed and wg_setconf_result.changed' when: 'wg_setconf_result.changed'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment