Skip to content

Commit 03e986f

Browse files
authored
Merge pull request #101 from play-iot/release/vpnc-deployer/0.10.1
Release/vpnc deployer/0.10.1
2 parents b6b5476 + f58d280 commit 03e986f

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

cli/CHANGELOG-VPNC-DEPLOYER.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [v0.10.1](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.10.1) (2021-06-16)
4+
5+
### Improvement
6+
7+
- Move `fix-connman-dhcp` into `roles/vpnc-state`
8+
39
## [v0.10.0](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.10.0) (2021-06-16)
410

511
### Improvement
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
args_vpn_state_show: False
22
args_vpn_state_assert_install: False
33
args_vpn_state_assert_work: False
4+
args_vpn_state_fix_connman: False
45
args_vpn_state_test_domains:
56
- google.com

cli/ansible/roles/vpnc-state/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
- name: Check VPNC CLI install
99
include_tasks: 01_check_vpnc_cli.yml
1010

11+
- name: Fix Connman DHClient if needed
12+
when: args_vpn_state_fix_connman and resp_vpnc_state['is_exec']
13+
include_tasks: tasks/connman_dhclient.yml
14+
1115
- name: Check VPNC service status
1216
include_tasks: 02_check_vpnc_service.yml
1317

cli/ansible/wf-vpnc-extend.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@
2727
vars:
2828
runtime_vpn_conn: "{{ resp_prepare_credential }}"
2929

30-
- name: Fix Connman DHClient if needed
31-
include_tasks: tasks/connman_dhclient.yml
32-
3330
- name: Validate VPNC state
3431
include_role:
3532
name: vpnc-state
3633
vars:
3734
args_vpn_state_show: True
35+
args_vpn_state_fix_connman: True
3836
args_vpn_state_assert_work: True

cli/ansible/wf-vpnc-rollout.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,12 @@
3434
include_role:
3535
name: vpnc-upgrade
3636

37-
- name: Fix Connman DHClient if needed
38-
include_tasks: tasks/connman_dhclient.yml
39-
4037
- name: Validate VPNC state
4138
when: wf_precondition_is_installed or wf_precondition_is_upgraded
4239
include_role:
4340
name: vpnc-state
4441
vars:
4542
args_vpn_state_show: True
4643
args_vpn_state_assert_install: True
44+
args_vpn_state_fix_connman: True
4745
args_vpn_state_assert_work: "{{ wf_precondition_is_work == 0 }}"

cli/ansible/wf-vpnc-state.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
name: vpnc-state
1313
vars:
1414
args_vpn_state_show: True
15+
args_vpn_state_fix_connman: True

0 commit comments

Comments
 (0)