Skip to content

Commit

Permalink
feat: install Ansible using pip to get more recent version
Browse files Browse the repository at this point in the history
  • Loading branch information
kral2 committed Oct 9, 2021
1 parent 5262327 commit cd4ffab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions files/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ dnf install git -y
curl iac.sh/terraform | bash && ./terraform-install.sh -a
curl iac.sh/packer | bash && ./packer-install.sh -a

# installing Ansible, collections and roles
dnf install ansible ansible-doc -y
ansible-galaxy collection install oracle.oci
ansible-galaxy role install cimon-io.systemd-service

# Python tooling
## update setuptools, wheel and pip
dnf install platform-python-devel.aarch64 -y # required by pre-commit
Expand All @@ -48,6 +43,11 @@ python -m pip install virtualenvwrapper --upgrade
python -m pip install oci oci-cli --upgrade
python -m pip install pre-commit --upgrade

# installing Ansible, collections and roles
python -m pip install ansible # dnf install ansible ansible-doc -y
ansible-galaxy collection install oracle.oci
ansible-galaxy role install cimon-io.systemd-service

# install Go globally
## required to install terraform-docs as there is no pre-build arm64 binaries
## install Go from Golang.org as OL8 currently only distribute Go 1.15
Expand All @@ -61,7 +61,7 @@ rm -rf "$GO_PACKAGE"
echo "#!/bin/sh"
echo "sudo /usr/local/go/bin/go env -w GOBIN=/usr/local/bin"
echo "sudo /usr/local/go/bin/go install github.com/terraform-docs/[email protected]"
} >> $HOME_FOLDER/install_terraform-docs.sh
} >> $HOME_FOLDER/install_terraform_docs.sh

chmod +X $HOME_FOLDER/install_terraform-docs.sh
$HOME_FOLDER/install_terraform-docs.sh
chmod +x $HOME_FOLDER/install_terraform_docs.sh
/bin/su -c "$HOME_FOLDER/install_terraform_docs.sh" - "$SYSTEM_USER"

0 comments on commit cd4ffab

Please sign in to comment.