File tree Expand file tree Collapse file tree 6 files changed +18
-24
lines changed Expand file tree Collapse file tree 6 files changed +18
-24
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,17 @@ jobs:
5656 package
5757
5858 - 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
6159 # 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
6361
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
6563 # https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html#installing-an-older-version-of-a-collection
6664 - 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
6866
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
7068 - 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
7270
7371 - name : Run deploy.sh
7472 env :
Original file line number Diff line number Diff line change 2929 persist-credentials : false
3030
3131 - 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
3432 # 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
3634
3735 - name : Show ansible version
3836 run : ansible --version
6563 working-directory : infra/ansible
6664 env :
6765 # 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
6967 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
7169 ANSIBLE_PRIVATE_KEY_FILE : ' coder_rsa'
7270 run : ansible-playbook prod.yml -i prod.inventory
7371
Original file line number Diff line number Diff line change 6868 tfenv use
6969
7070 - 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
7371 # 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
7573
7674 - name : Show tools versions
7775 env :
Original file line number Diff line number Diff line change 11# 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
33
44[prod]
55my-stamps.ru ansible_host=46.101.232.167
66
77[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
1010ansible_python_interpreter=/usr/bin/python3
Original file line number Diff line number Diff line change 11# 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
33
44[prod]
55my-stamps.ru
66
77[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
1010ansible_python_interpreter=/usr/bin/python3
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ cleanup() {
2424trap ' cleanup' EXIT SIGHUP SIGINT SIGTERM
2525
2626# 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
2828export ANSIBLE_HOST_KEY_CHECKING=False
2929
3030# 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
3232export ANSIBLE_STDOUT_CALLBACK=debug
3333
3434if [ -z " ${VAULT_PASSWORD:- } " ]; then
3939printf ' %s' " $VAULT_PASSWORD " > " $PASS_FILE "
4040
4141# 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
4343for FILE in " $PRIVATE_KEY " " $VARS_FILE " ; do
4444 FILENAME=" $( basename " $FILE " ) "
4545 echo " Decrypting ${FILENAME} .enc to $FILENAME "
You can’t perform that action at this time.
0 commit comments