File tree 6 files changed +18
-24
lines changed
6 files changed +18
-24
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,17 @@ jobs:
56
56
package
57
57
58
58
- name : Install ansible
59
- # The command pip3 install --user ansible==2.10.17 doesn't work as we have an old version
60
- # See https://docs.ansible.com/ansible/2.10/installation_guide/intro_installation.html#installing-devel-from-github-with-pip
61
59
# NOTE: during version bump don't forget to update in other places: provisioning-by-ansible.yml and provisioning-by-terraform.yml
62
- run : python3 -m pip install --user https://github.com/ ansible/ansible/archive/refs/tags/v2.10.17.tar.gz
60
+ run : pip3 install ansible==3.4.0
63
61
64
- # https://docs.ansible.com/ansible/2.10 /collections/community/general/uptimerobot_module.html
62
+ # https://docs.ansible.com/ansible/3 /collections/community/general/uptimerobot_module.html
65
63
# https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html#installing-an-older-version-of-a-collection
66
64
- name : Install community.general collection for UptimeRobot
67
- run : ansible-galaxy collection install community.general:==1.3.6
65
+ run : ansible-galaxy collection install community.general:==2.5.2
68
66
69
- # https://docs.ansible.com/ansible/2.10 /collections/ansible/posix/debug_callback.html
67
+ # https://docs.ansible.com/ansible/3 /collections/ansible/posix/debug_callback.html
70
68
- name : Install ansible.posix.debug for debug callback
71
- run : ansible-galaxy collection install ansible.posix:==1.1.1
69
+ run : ansible-galaxy collection install ansible.posix:==1.2.0
72
70
73
71
- name : Run deploy.sh
74
72
env :
Original file line number Diff line number Diff line change 29
29
persist-credentials : false
30
30
31
31
- name : Install ansible
32
- # The command pip3 install --user ansible==2.10.17 doesn't work as we have an old version
33
- # See https://docs.ansible.com/ansible/2.10/installation_guide/intro_installation.html#installing-devel-from-github-with-pip
34
32
# NOTE: during version bump don't forget to update in other places: deploy.yml and provisioning-by-terraform.yml
35
- run : python3 -m pip install --user https://github.com/ ansible/ansible/archive/refs/tags/v2.10.17.tar.gz
33
+ run : pip3 install ansible==3.4.0
36
34
37
35
- name : Show ansible version
38
36
run : ansible --version
65
63
working-directory : infra/ansible
66
64
env :
67
65
# Disable host key checking to suppress interactive prompt.
68
- # See: https://docs.ansible.com/ansible/2.10 /user_guide/connection_details.html#managing-host-key-checking
66
+ # See: https://docs.ansible.com/ansible/3 /user_guide/connection_details.html#managing-host-key-checking
69
67
ANSIBLE_HOST_KEY_CHECKING : ' False'
70
- # See: https://docs.ansible.com/ansible/2.10 /reference_appendices/config.html#envvar-ANSIBLE_PRIVATE_KEY_FILE
68
+ # See: https://docs.ansible.com/ansible/3 /reference_appendices/config.html#envvar-ANSIBLE_PRIVATE_KEY_FILE
71
69
ANSIBLE_PRIVATE_KEY_FILE : ' coder_rsa'
72
70
run : ansible-playbook prod.yml -i prod.inventory
73
71
Original file line number Diff line number Diff line change 68
68
tfenv use
69
69
70
70
- name : Install ansible-vault
71
- # The command pip3 install --user ansible==2.10.17 doesn't work as we have an old version
72
- # See https://docs.ansible.com/ansible/2.10/installation_guide/intro_installation.html#installing-devel-from-github-with-pip
73
71
# NOTE: during version bump don't forget to update in other places: deploy.yml and provisioning-by-ansible.yml
74
- run : python3 -m pip install --user https://github.com/ ansible/ansible/archive/refs/tags/v2.10.17.tar.gz
72
+ run : pip3 install ansible==3.4.0
75
73
76
74
- name : Show tools versions
77
75
env :
Original file line number Diff line number Diff line change 1
1
# Ansible inventory file
2
- # See: https://docs.ansible.com/ansible/2.10 /user_guide/intro_inventory.html
2
+ # See: https://docs.ansible.com/ansible/3 /user_guide/intro_inventory.html
3
3
4
4
[prod]
5
5
my-stamps.ru ansible_host=46.101.232.167
6
6
7
7
[all:vars]
8
- # https://docs.ansible.com/ansible/2.10 /reference_appendices/python_3_support.html#using-python-3-on-the-managed-machines-with-commands-and-playbooks
9
- # https://docs.ansible.com/ansible/2.10 /reference_appendices/interpreter_discovery.html
8
+ # https://docs.ansible.com/ansible/3 /reference_appendices/python_3_support.html#using-python-3-on-the-managed-machines-with-commands-and-playbooks
9
+ # https://docs.ansible.com/ansible/3 /reference_appendices/interpreter_discovery.html
10
10
ansible_python_interpreter=/usr/bin/python3
Original file line number Diff line number Diff line change 1
1
# Ansible inventory file
2
- # See: https://docs.ansible.com/ansible/2.10 /user_guide/intro_inventory.html
2
+ # See: https://docs.ansible.com/ansible/3 /user_guide/intro_inventory.html
3
3
4
4
[prod]
5
5
my-stamps.ru
6
6
7
7
[all:vars]
8
- # https://docs.ansible.com/ansible/2.10 /reference_appendices/python_3_support.html#using-python-3-on-the-managed-machines-with-commands-and-playbooks
9
- # https://docs.ansible.com/ansible/2.10 /reference_appendices/interpreter_discovery.html
8
+ # https://docs.ansible.com/ansible/3 /reference_appendices/python_3_support.html#using-python-3-on-the-managed-machines-with-commands-and-playbooks
9
+ # https://docs.ansible.com/ansible/3 /reference_appendices/interpreter_discovery.html
10
10
ansible_python_interpreter=/usr/bin/python3
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ cleanup() {
24
24
trap ' cleanup' EXIT SIGHUP SIGINT SIGTERM
25
25
26
26
# Disable host key checking to suppress interactive prompt.
27
- # See: https://docs.ansible.com/ansible/2.10 /user_guide/connection_details.html#managing-host-key-checking
27
+ # See: https://docs.ansible.com/ansible/3 /user_guide/connection_details.html#managing-host-key-checking
28
28
export ANSIBLE_HOST_KEY_CHECKING=False
29
29
30
30
# Make the output of a failed task human readable.
31
- # See: https://docs.ansible.com/ansible/2.10 /reference_appendices/config.html#envvar-ANSIBLE_STDOUT_CALLBACK
31
+ # See: https://docs.ansible.com/ansible/3 /reference_appendices/config.html#envvar-ANSIBLE_STDOUT_CALLBACK
32
32
export ANSIBLE_STDOUT_CALLBACK=debug
33
33
34
34
if [ -z " ${VAULT_PASSWORD:- } " ]; then
39
39
printf ' %s' " $VAULT_PASSWORD " > " $PASS_FILE "
40
40
41
41
# LATER: consider specifying private key via env variable
42
- # https://docs.ansible.com/ansible/2.10 /reference_appendices/config.html#envvar-ANSIBLE_PRIVATE_KEY_FILE
42
+ # https://docs.ansible.com/ansible/3 /reference_appendices/config.html#envvar-ANSIBLE_PRIVATE_KEY_FILE
43
43
for FILE in " $PRIVATE_KEY " " $VARS_FILE " ; do
44
44
FILENAME=" $( basename " $FILE " ) "
45
45
echo " Decrypting ${FILENAME} .enc to $FILENAME "
You can’t perform that action at this time.
0 commit comments