19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
- uses : actions/checkout@v2
22
- - name : Install Ansible v2.10 alpha (GH actions currently uses 2.9)
23
- run : ANSIBLE_SKIP_CONFLICT_CHECK=1 pip install --user ansible==2.10.0a9 && ansible --version
22
+ - name : Remove Python 2 and old Ansible 2.9 version
23
+ run : sudo apt purge python ansible -y
24
+ - name : Set up Python 3
25
+ uses : actions/setup-python@v2
26
+ with :
27
+ python-version : ' 3.x'
28
+ - name : Install Ansible v2.10.3 (GH actions currently uses 2.9)
29
+ run : pip install ansible==2.10.3
30
+ - name : Print Ansible and Python version
31
+ run : ansible --version && python --version
24
32
- name : Get latest StackHead version
25
33
run : ansible-galaxy collection install git+https://github.com/getstackhead/stackhead.git,next -f
26
34
- run : ansible-playbook ./__tests__/test-tf-generation.yml
@@ -39,14 +47,16 @@ jobs:
39
47
if : github.event.pull_request.draft == false
40
48
steps :
41
49
- uses : actions/checkout@v2
50
+ - name : Remove Python 2 and old Ansible 2.9 version
51
+ run : sudo apt purge python ansible -y
42
52
- name : Set up Python 3
43
53
uses : actions/setup-python@v2
44
54
with :
45
55
python-version : ' 3.x'
46
- - name : Uninstall old Ansible
47
- run : ansible --version && sudo apt purge ansible -y
48
- - name : Install Ansible v2.10 alpha (GH actions currently uses 2.9)
49
- run : sudo python -m pip install ansible==2.10.0a9 && ansible --version
56
+ - name : Install Ansible v2.10.3 (GH actions currently uses 2.9)
57
+ run : pip install ansible==2.10.3
58
+ - name : Print Ansible and Python version
59
+ run : ansible --version && python --version
50
60
-
uses :
webfactory/[email protected]
51
61
with :
52
62
ssh-private-key : " ${{ secrets.SSH_PRIVATE_KEY }}"
0 commit comments