Loading .gitlab-ci.yml +1 −6 Original line number Diff line number Diff line Loading @@ -2,18 +2,13 @@ # gitLab ci stages stages: # deployment - "gitleaks" - "linting" - "deployment" # include jobs include: # deployment - local: ".gitlab/deployment.yaml" # code plumbing - local: ".gitlab/gitleaks.yaml" # linting Loading .gitlab/deployment.yamldeleted 100644 → 0 +0 −32 Original line number Diff line number Diff line --- # deploy ansible/roles/common code deployment: stage: "deployment" image: name: "registry.gitlab.simoncor.net/oci/ssh-client:v25.06.03" entrypoint: ["/bin/sh", "-c"] rules: # run only on push to default branch - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - when: "never" # prepare ssh before_script: # prepare ssh - | # prepare ssh mkdir -p ~/.ssh chmod 700 ~/.ssh echo "$SSH_CONFIG" > ~/.ssh/config echo "$SSH_DEPLOYMENT_KEY" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 # deployment commands script: - | # install ansible roles dependancies ssh $SSH_DEPLOYMENT_USER@$ANSIBLE_SERVER \ "sudo /usr/local/bin/ansible-galaxy install -r /etc/ansible/roles/requirements.yaml --force" playbook.yaml +5 −3 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ - name: "install and configure a DHCP server" hosts: "all" become: true pre_tasks: tasks: # due to semaphore bug we need to do this ourselves - name: "force-update requirements" Loading @@ -15,5 +15,7 @@ changed_when: false failed_when: false roles: - role: "dhcp" # execute the role - name: "execute role: dhcp" ansible.builtin.include_role: name: "dhcp" Loading
.gitlab-ci.yml +1 −6 Original line number Diff line number Diff line Loading @@ -2,18 +2,13 @@ # gitLab ci stages stages: # deployment - "gitleaks" - "linting" - "deployment" # include jobs include: # deployment - local: ".gitlab/deployment.yaml" # code plumbing - local: ".gitlab/gitleaks.yaml" # linting Loading
.gitlab/deployment.yamldeleted 100644 → 0 +0 −32 Original line number Diff line number Diff line --- # deploy ansible/roles/common code deployment: stage: "deployment" image: name: "registry.gitlab.simoncor.net/oci/ssh-client:v25.06.03" entrypoint: ["/bin/sh", "-c"] rules: # run only on push to default branch - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - when: "never" # prepare ssh before_script: # prepare ssh - | # prepare ssh mkdir -p ~/.ssh chmod 700 ~/.ssh echo "$SSH_CONFIG" > ~/.ssh/config echo "$SSH_DEPLOYMENT_KEY" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 # deployment commands script: - | # install ansible roles dependancies ssh $SSH_DEPLOYMENT_USER@$ANSIBLE_SERVER \ "sudo /usr/local/bin/ansible-galaxy install -r /etc/ansible/roles/requirements.yaml --force"
playbook.yaml +5 −3 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ - name: "install and configure a DHCP server" hosts: "all" become: true pre_tasks: tasks: # due to semaphore bug we need to do this ourselves - name: "force-update requirements" Loading @@ -15,5 +15,7 @@ changed_when: false failed_when: false roles: - role: "dhcp" # execute the role - name: "execute role: dhcp" ansible.builtin.include_role: name: "dhcp"