File tree Expand file tree Collapse file tree 9 files changed +29
-19
lines changed Expand file tree Collapse file tree 9 files changed +29
-19
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ ---
2
+ repos :
3
+ - repo : https://github.com/ansible-community/ansible-lint.git
4
+ rev : v6.15.0
5
+ hooks :
6
+ - id : ansible-lint
7
+ files : \.(yaml|yml)$
8
+ entry : ansible-lint . --force-color -v -p
Original file line number Diff line number Diff line change 1
1
[defaults]
2
- ask_vault_pass = True
2
+ # ask_vault_pass = True
3
3
inventory = inventory.yml
4
4
interpreter_python = python3
5
5
roles_path = .ansible/roles
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ if [[ "$custom_filled" =~ "custom.yml" ]]; then
177
177
echo " If you want to change something (e.g. username, domain name, etc.)"
178
178
echo " Please edit custom.yml or secret.yml manually, and then re-run this script"
179
179
echo
180
- cd $HOME /ansible-easy-vpn && ansible-playbook run.yml
180
+ cd $HOME /ansible-easy-vpn && ansible-playbook --ask-vault-pass run.yml
181
181
exit 0
182
182
fi
183
183
@@ -418,12 +418,12 @@ if [[ "$launch_playbook" =~ ^[yY]$ ]]; then
418
418
if [[ $EUID -ne 0 ]]; then
419
419
echo
420
420
echo " Please enter your current sudo password now"
421
- cd $HOME /ansible-easy-vpn && ansible-playbook -K run.yml
421
+ cd $HOME /ansible-easy-vpn && ansible-playbook --ask-vault-pass - K run.yml
422
422
else
423
- cd $HOME /ansible-easy-vpn && ansible-playbook run.yml
423
+ cd $HOME /ansible-easy-vpn && ansible-playbook --ask-vault-pass run.yml
424
424
fi
425
425
else
426
- echo " You can run the playbook by executing this script again"
427
- echo " cd ${HOME} /ansible-easy-vpn && bash bootstrap.sh"
426
+ echo " You can run the playbook by executing the bootstrap script again: "
427
+ echo " cd ~ /ansible-easy-vpn && bash bootstrap.sh"
428
428
exit
429
429
fi
Original file line number Diff line number Diff line change 1
- cryptography <= 36.0.2
2
- pyOpenSSL <= 20.0.1
1
+ cryptography
2
+ pyOpenSSL
3
3
certbot
4
4
requests < 2.29.2
5
5
passlib
Original file line number Diff line number Diff line change
1
+ ---
1
2
- name : Create the wg network
2
3
community.general.docker_network :
3
4
name : wg_network
Original file line number Diff line number Diff line change 8
8
9
9
- name : Configure the firewall with system python3.6 if on CentOS 8
10
10
when : ansible_distribution_major_version | int == 8
11
- set_fact :
11
+ ansible.builtin. set_fact :
12
12
ansible_python_interpreter : " /usr/bin/python3.6"
13
13
14
14
- name : Configure the firewall with system python3.9 if on CentOS 9
15
15
when : ansible_distribution_major_version | int == 9
16
- set_fact :
16
+ ansible.builtin. set_fact :
17
17
ansible_python_interpreter : " /usr/bin/python3"
18
18
19
-
20
-
21
19
- name : Configure firewalld
22
20
block :
23
21
- name : Allow the defined ports
34
32
port : " {{ ssh_port }}/tcp"
35
33
36
34
- name : Put the venv python interpreter back in place
37
- set_fact :
35
+ ansible.builtin. set_fact :
38
36
ansible_python_interpreter : " /{{ lookup('env', 'HOME') }}/ansible-easy-vpn/.venv/bin/python3"
39
37
40
38
- name : Enable and start firewalld
Original file line number Diff line number Diff line change 5
5
name : " *"
6
6
state : latest
7
7
update_cache : yes
8
+ tags :
9
+ - skip_ansible_lint
8
10
9
11
- name : Update and upgrade dnf packages
10
12
when : ansible_distribution_major_version | int >= 8
11
13
ansible.builtin.dnf :
12
14
name : " *"
13
15
state : latest
14
16
update_cache : yes
17
+ tags :
18
+ - skip_ansible_lint
15
19
16
20
- name : Set correct automatic update utility vars (RHEL 8)
17
- set_fact :
21
+ ansible.builtin. set_fact :
18
22
update_utility : dnf-automatic
19
23
update_service : dnf-automatic-install.timer
20
24
update_conf_path : /etc/dnf/automatic.conf
21
25
when : ansible_distribution_major_version | int >= 8
22
26
23
27
- name : Set correct automatic update utility vars (RHEL <= 7)
24
- set_fact :
28
+ ansible.builtin. set_fact :
25
29
update_utility : yum-cron
26
30
update_service : yum-cron
27
31
update_conf_path : /etc/yum/yum-cron.conf
28
32
when : ansible_distribution_major_version | int <= 7
29
33
30
34
- name : Install automatic update utility
31
- package :
35
+ ansible.builtin. package :
32
36
name : ' {{ update_utility }}'
33
37
state : present
34
38
35
39
- name : Ensure automatic update utility is running and enabled on boot
36
- service :
40
+ ansible.builtin. service :
37
41
name : ' {{ update_service }}'
38
42
state : started
39
43
enabled : true
40
44
41
45
- name : Configure autoupdates
42
- lineinfile :
46
+ ansible.builtin. lineinfile :
43
47
dest : ' {{ update_conf_path }}'
44
48
regexp : ' ^apply_updates = .+'
45
49
line : ' apply_updates = yes'
Original file line number Diff line number Diff line change 24
24
tags :
25
25
- system
26
26
27
-
28
27
- role : geerlingguy.docker
29
28
tags :
30
29
- docker
You can’t perform that action at this time.
0 commit comments