mirror of
https://gitlab.durp.info/durfy/runbooks/ansible.git
synced 2026-05-07 08:00:29 -05:00
update
This commit is contained in:
parent
63c5b382a0
commit
23b6f94640
1 changed files with 5 additions and 2 deletions
|
|
@ -16,18 +16,21 @@ variables:
|
||||||
stages:
|
stages:
|
||||||
- script
|
- script
|
||||||
|
|
||||||
ansible-base:
|
.ansible:
|
||||||
stage: script
|
stage: script
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
image:
|
image:
|
||||||
name: registry.durp.info/ubuntu:latest
|
name: registry.durp.info/ubuntu:latest
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt update && apt install tzdata ansible python3-pip -y
|
- apt update && apt install tzdata ansible python3-pip -y
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- chmod 400 "$SSH_PRIVATE_KEY"
|
- chmod 400 "$SSH_PRIVATE_KEY"
|
||||||
- ssh-add "$SSH_PRIVATE_KEY"
|
- ssh-add "$SSH_PRIVATE_KEY"
|
||||||
|
|
||||||
|
|
||||||
|
ansible-base:
|
||||||
|
extends: .ansible
|
||||||
script:
|
script:
|
||||||
- ansible-playbook $CI_PROJECT_DIR/ansible/base.yaml
|
- ansible-playbook $CI_PROJECT_DIR/ansible/base.yaml
|
||||||
rules:
|
rules:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue