Go to file
2021-12-15 17:39:56 +00:00
.drone.yml 🚑 Fix pipeline 2021-12-15 09:49:11 +01:00
Dockerfile Mise à jour de 'Dockerfile' 2021-12-15 16:34:59 +01:00
entrypoint 🚑 Change ssh key name 2021-12-15 18:39:38 +01:00
README.md 🔨 Init 2021-12-15 00:21:52 +01:00
renovate.json Add renovate.json 2021-12-15 17:39:56 +00:00

Drone Ansible Runner

Config:

kind: pipeline
name: default

steps:
  - name: Check ansible syntax
    image: harbor.sebclem.fr/sebclem/drone-ansible-runner
    settings:
      playbook: sites.yml
      galaxy_file: roles/requirements.yml
      check_syntax: true
      vault_token:
        from_secret: ansible_vault_password
      private_key:
        from_secret: ansible_private_key
    when:
      event:
        - push
        - custom

  - name: Run ansible playbook
    image: harbor.sebclem.fr/sebclem/drone-ansible-runner
    settings:
      verbosity: 1
      playbook: sites.yml
      galaxy_file: roles/requirements.yml
      check_syntax: true
      vault_token:
        from_secret: ansible_vault_password
      private_key:
        from_secret: ansible_private_key
      limit: harbor.home
    when:
      event:
        - promote
        - rollback
        - custom