Skip to content

Commit

Permalink
Install ansible-core instead of ansible (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Dec 28, 2023
1 parent 020cd7f commit 932c47d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions elements/ci-image/install.d/10-install
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apt-get install --yes ansible python3-pip
ansible-playbook -i localhost, /tmp/in_target.d/locales.yml
rm -rf /root/.ansible
apt-get remove --yes ansible
apt-get autoremove --yes

# install ansible from pypi

pip3 install 'ansible==8.0.0'
pip3 install --no-cache-dir 'ansible-core>=2.15.0,<2.16.0'
8 changes: 6 additions & 2 deletions elements/ci-image/install.d/20-ansible
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ export LC_ALL=

# install required ansible collections

ansible-galaxy collection install git+https://github.com/osism/ansible-collection-services
ansible-galaxy collection install git+https://github.com/osism/ansible-collection-commons
ansible-galaxy collection install --collections-path /usr/share/ansible/collections ansible.netcommon
ansible-galaxy collection install --collections-path /usr/share/ansible/collections ansible.posix
ansible-galaxy collection install --collections-path /usr/share/ansible/collections community.docker

ansible-galaxy collection install --collections-path /usr/share/ansible/collections git+https://github.com/osism/ansible-collection-services
ansible-galaxy collection install --collections-path /usr/share/ansible/collections git+https://github.com/osism/ansible-collection-commons

# run ansible playbook

Expand Down
1 change: 1 addition & 0 deletions playbooks/diskimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

required_packages_extra:
- linux-generic-hwe-22.04
- python3-netaddr

roles:
- osism.commons.operator
Expand Down

0 comments on commit 932c47d

Please sign in to comment.