Install jmespath in playbook instead of install script

This commit is contained in:
2022-06-30 20:41:40 +02:00
parent 7b892b7d56
commit e88b1dd5fa
2 changed files with 13 additions and 1 deletions

View File

@@ -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

View File

@@ -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: