Adjust playbooks for check mode
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul Brinkmeier 2023-01-27 02:38:15 +01:00
parent 0061d7dbf0
commit 3f3d619694
4 changed files with 9 additions and 4 deletions

View File

@ -17,11 +17,13 @@ steps:
- name: ansible-playbook --check - name: ansible-playbook --check
image: python:3.10.6 image: python:3.10.6
environment: environment:
KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
commands: commands:
- pip install ansible==6.4.0 > /dev/null 2> /dev/null - pip install ansible==6.4.0 > /dev/null 2> /dev/null
- mkdir "$HOME/.ssh" - mkdir "$HOME/.ssh"
- echo "$KEY" > "$HOME/.ssh/id" - echo "$SSH_KEY" > "$HOME/.ssh/id"
- chmod 0600 ~/.ssh/id
- ssh-keyscan -p 2309 vmd98928.contaboserver.net > "$HOME/.ssh/known_hosts"
- cd ansible - cd ansible
- ansible-playbook --check playbooks/misc-all.yaml - ansible-playbook --private-key "$HOME/.ssh/id" --check playbooks/misc-all.yaml

View File

@ -1,2 +1,2 @@
[misc] [misc]
vmd98928.contaboserver.net vmd98928.contaboserver.net ansible_port=2309

View File

@ -86,6 +86,7 @@
# Before deploying the remaining configs below, we check that # Before deploying the remaining configs below, we check that
# Gitea is reachable at git.pbrinkmeier.de # Gitea is reachable at git.pbrinkmeier.de
- name: Wait for gitea to be reachable - name: Wait for gitea to be reachable
check_mode: false
ansible.builtin.uri: ansible.builtin.uri:
method: GET method: GET
url: https://git.pbrinkmeier.de/api/v1/version url: https://git.pbrinkmeier.de/api/v1/version

View File

@ -12,6 +12,7 @@
- lsb-release - lsb-release
- name: Retrieve Docker GPG key - name: Retrieve Docker GPG key
check_mode: false
ansible.builtin.uri: ansible.builtin.uri:
url: https://download.docker.com/linux/debian/gpg url: https://download.docker.com/linux/debian/gpg
return_content: true return_content: true
@ -25,6 +26,7 @@
creates: /usr/share/keyrings/docker-archive-keyring.gpg creates: /usr/share/keyrings/docker-archive-keyring.gpg
- name: Retrieve dpkg architecture - name: Retrieve dpkg architecture
check_mode: false
ansible.builtin.command: dpkg --print-architecture ansible.builtin.command: dpkg --print-architecture
register: dpkg_architecture register: dpkg_architecture
changed_when: false changed_when: false