python
This commit is contained in:
parent
0548f903a8
commit
e5e3ed6931
@ -5,4 +5,5 @@
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- python
|
||||
- sshd
|
11
ansible/roles/python/tasks/main.yml
Normal file
11
ansible/roles/python/tasks/main.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: check python
|
||||
raw: test -e /usr/bin/python3
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
register: check_python
|
||||
|
||||
- name: install python
|
||||
become: true
|
||||
raw: pacman -Sy python3 --noconfirm
|
||||
when: check_python.rc != 0
|
Loading…
Reference in New Issue
Block a user