refactor: clean up Ansible installation
This commit is contained in:
parent
6cfbdaf9b3
commit
00e0aaea7d
1 changed files with 9 additions and 9 deletions
|
@ -51,6 +51,10 @@
|
|||
- vim-gtk3
|
||||
- virt-manager
|
||||
- zsh
|
||||
# Version of the git-delta utility
|
||||
git_delta_version: 0.18.2
|
||||
# Version of the atuin utility
|
||||
atuin_version: 18.4.0
|
||||
# Version of ASDF itself
|
||||
asdf_version: 0.15.0
|
||||
# Tools that will be installed using asdf
|
||||
|
@ -70,8 +74,8 @@
|
|||
opentofu: 1.8.1
|
||||
packer: 1.11.0
|
||||
terragrunt: 0.66.9
|
||||
# Python packages to install
|
||||
python_packages:
|
||||
# Python packages to install in the Ansible venv
|
||||
ansible_packages:
|
||||
- ansible>=9,<10
|
||||
- dnspython
|
||||
- netaddr
|
||||
|
@ -81,10 +85,6 @@
|
|||
- requests
|
||||
- git+https://github.com/vmware/vsphere-automation-sdk-python.git
|
||||
- pywinrm
|
||||
# Version of the git-delta utility
|
||||
git_delta_version: 0.18.2
|
||||
# Version of the atuin utility
|
||||
atuin_version: 18.4.0
|
||||
# Vim plugins that need to be installed
|
||||
vim_plugins:
|
||||
- airblade/vim-gitgutter
|
||||
|
@ -555,7 +555,7 @@
|
|||
chdir: /home/vagrant
|
||||
executable: /bin/zsh
|
||||
|
||||
# Install Ansible 9 and various packages in a Python venv
|
||||
# Install Ansible and various packages in a Python venv
|
||||
- name: Ensure vagrant user has a .local directory
|
||||
loop: [ bin, share ]
|
||||
ansible.builtin.file:
|
||||
|
@ -568,7 +568,7 @@
|
|||
cmd: >-
|
||||
source .zshrc && {
|
||||
[ -d /home/vagrant/.local/share/ansible ] ||
|
||||
python -m venv /home/vagrant/.local/share/ansible;
|
||||
/usr/bin/python -m venv /home/vagrant/.local/share/ansible;
|
||||
}
|
||||
chdir: /home/vagrant
|
||||
|
||||
|
@ -578,7 +578,7 @@
|
|||
cmd: >-
|
||||
source /home/vagrant/.zshrc &&
|
||||
source /home/vagrant/.local/share/ansible/bin/activate &&
|
||||
pip install "{{ python_packages | join('" "') }}"
|
||||
pip install "{{ ansible_packages | join('" "') }}"
|
||||
chdir: /home/vagrant/.local/share
|
||||
|
||||
- name: List Ansible executables
|
||||
|
|
Loading…
Reference in a new issue