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