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:
|
||||
- script
|
||||
|
||||
ansible-base:
|
||||
.ansible:
|
||||
stage: script
|
||||
variables:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
image:
|
||||
name: registry.durp.info/ubuntu:latest
|
||||
|
||||
before_script:
|
||||
- apt update && apt install tzdata ansible python3-pip -y
|
||||
- eval $(ssh-agent -s)
|
||||
- chmod 400 "$SSH_PRIVATE_KEY"
|
||||
- ssh-add "$SSH_PRIVATE_KEY"
|
||||
|
||||
|
||||
ansible-base:
|
||||
extends: .ansible
|
||||
script:
|
||||
- ansible-playbook $CI_PROJECT_DIR/ansible/base.yaml
|
||||
rules:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue