Go to file
2022-02-01 11:26:05 +01:00
.drone.yml 🤖 Add notification 2022-02-01 11:26:05 +01:00
Dockerfile Update 'Dockerfile' 2022-01-29 17:48:41 +01:00
entrypoint Update 'entrypoint' 2022-01-23 18:21:24 +01:00
README.md 🔨 Init 2021-12-15 00:21:52 +01:00
renovate.json Update 'renovate.json' 2022-01-19 11:19:30 +01: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