diff --git a/files/bootstrap.sh b/files/bootstrap.sh index b9b9e58..4b117b3 100644 --- a/files/bootstrap.sh +++ b/files/bootstrap.sh @@ -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/terraform-docs@v0.16.0" -} >> $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"