feat-test-playbooks #5

Merged
realaravinth merged 19 commits from feat-test-playbooks into master 2023-12-13 00:49:03 +05:30
Showing only changes of commit 64302fed4c - Show all commits

View file

@ -2,10 +2,17 @@ steps:
backend: backend:
image: python:3-bookworm image: python:3-bookworm
commands: commands:
- whoami
- apt-get update - apt-get update
- apt upgrade -y - apt-get install -y ca-certificates curl gnupg tar wget libssl-dev python3-pip cython3 pipx apt-transport-https coreutils iputils-ping
- apt-get install -y ca-certificates curl gnupg tar wget libssl-dev python3-pip cython3 pipx - install -m 0755 -d /etc/apt/keyrings
- curl -fsSL https://packages.opentofu.org/opentofu/tofu/gpgkey | gpg --no-tty --batch --dearmor -o /etc/apt/keyrings/opentofu.gpg
- chmod a+r /etc/apt/keyrings/opentofu.gpg
- echo "deb [signed-by=/etc/apt/keyrings/opentofu.gpg] https://packages.opentofu.org/opentofu/tofu/any/ any main" > /etc/apt/sources.list.d/opentofu.list
echo "deb-src [signed-by=/etc/apt/keyrings/opentofu.gpg] https://packages.opentofu.org/opentofu/tofu/any/ any main" >> /etc/apt/sources.list.d/opentofu.list
- apt-get update
- apt-get install -y tofu
- ping -c 10 192.168.0.102
- ping -c 10 192.168.0.127
- pipx install --include-deps ansible - pipx install --include-deps ansible
- pipx ensurepath && echo $SHELL - pipx ensurepath && echo $SHELL
- /root/.local/bin/ansible-galaxy install -r ./ansible/requirements.yml - /root/.local/bin/ansible-galaxy install -r ./ansible/requirements.yml