Install jmespath in playbook instead of install script
This commit is contained in:
@@ -92,7 +92,6 @@ fi
|
||||
|
||||
if [[ $NAME == "Arch Linux" ]] ; then
|
||||
_install "ansible"
|
||||
_install "python-jmespath"
|
||||
fi
|
||||
|
||||
cd "$DOTDIR" && make
|
||||
|
||||
13
playbook.yml
13
playbook.yml
@@ -49,6 +49,19 @@
|
||||
become: true
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- block:
|
||||
- name: install ansible requirements
|
||||
package:
|
||||
name: "{{ packages[distro] }}"
|
||||
state: present
|
||||
become: true
|
||||
vars:
|
||||
packages:
|
||||
archlinux:
|
||||
- python-jmespath
|
||||
ubuntu:
|
||||
- python3-jmespath
|
||||
|
||||
- block:
|
||||
- name: enable multilib repository
|
||||
blockinfile:
|
||||
|
||||
Reference in New Issue
Block a user