-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: install Ansible using pip to get more recent version
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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" |