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
|
- vim-gtk3
|
||||||
- virt-manager
|
- virt-manager
|
||||||
- zsh
|
- 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
|
# Version of ASDF itself
|
||||||
asdf_version: 0.15.0
|
asdf_version: 0.15.0
|
||||||
# Tools that will be installed using asdf
|
# Tools that will be installed using asdf
|
||||||
|
@ -70,8 +74,8 @@
|
||||||
opentofu: 1.8.1
|
opentofu: 1.8.1
|
||||||
packer: 1.11.0
|
packer: 1.11.0
|
||||||
terragrunt: 0.66.9
|
terragrunt: 0.66.9
|
||||||
# Python packages to install
|
# Python packages to install in the Ansible venv
|
||||||
python_packages:
|
ansible_packages:
|
||||||
- ansible>=9,<10
|
- ansible>=9,<10
|
||||||
- dnspython
|
- dnspython
|
||||||
- netaddr
|
- netaddr
|
||||||
|
@ -81,10 +85,6 @@
|
||||||
- requests
|
- requests
|
||||||
- git+https://github.com/vmware/vsphere-automation-sdk-python.git
|
- git+https://github.com/vmware/vsphere-automation-sdk-python.git
|
||||||
- pywinrm
|
- 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 that need to be installed
|
||||||
vim_plugins:
|
vim_plugins:
|
||||||
- airblade/vim-gitgutter
|
- airblade/vim-gitgutter
|
||||||
|
@ -555,7 +555,7 @@
|
||||||
chdir: /home/vagrant
|
chdir: /home/vagrant
|
||||||
executable: /bin/zsh
|
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
|
- name: Ensure vagrant user has a .local directory
|
||||||
loop: [ bin, share ]
|
loop: [ bin, share ]
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -568,7 +568,7 @@
|
||||||
cmd: >-
|
cmd: >-
|
||||||
source .zshrc && {
|
source .zshrc && {
|
||||||
[ -d /home/vagrant/.local/share/ansible ] ||
|
[ -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
|
chdir: /home/vagrant
|
||||||
|
|
||||||
|
@ -578,7 +578,7 @@
|
||||||
cmd: >-
|
cmd: >-
|
||||||
source /home/vagrant/.zshrc &&
|
source /home/vagrant/.zshrc &&
|
||||||
source /home/vagrant/.local/share/ansible/bin/activate &&
|
source /home/vagrant/.local/share/ansible/bin/activate &&
|
||||||
pip install "{{ python_packages | join('" "') }}"
|
pip install "{{ ansible_packages | join('" "') }}"
|
||||||
chdir: /home/vagrant/.local/share
|
chdir: /home/vagrant/.local/share
|
||||||
|
|
||||||
- name: List Ansible executables
|
- name: List Ansible executables
|
||||||
|
|
Loading…
Add table
Reference in a new issue