/drone-role

Drone CI Ansible role

Primary LanguageJinjaBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Drone CI Server Ansible role

Basic role syntax check

An Ansible role for ensuring the configuration of Drone CI.

Requirements

Requires Docker, private Docker Registry, Docker Compose and GitLab installed.

Role Variables

Variable Required Default Choices Comments
docker_timeout yes 300 Integer value Number of seconds before docker pull timeout
docker_retries yes 60 Integer value Number of tries for docker pull
docker_delay yes 10 Integer value Delay in seconds between pull retries
default_retries yes 60 Integer value Default number of retries
default_delay yes 60 Integer value Default delay in seconds between retries
drone_port yes 80 Integer value Port to listen on
registry_host yes not defined String value IP address of private Docker registry
registry_port yes not defined Integer value Port the private Docker registry listens on
images_cache_path no not defined Path Path to folder used to cache saved Docker images
cache_container_timeout no 300 seconds Integer value Number of seconds before Ansible times out

Example Playbook

An example can be found used in my Hands-on DevOps course's ansible/master-playbook.yml.

- hosts: masters
  remote_user: vagrant
  roles:
    - common
    - docker
    - docker-compose
    - docker-registry
    - k3s-server
    - metallb
    - gitlab
    - drone

The above Ansible playbook uses my

For more information and to see this role put into action checkout my Hands-on DevOps class project.

License

3-Clause BSD License

Author Information

Michael Joseph Walsh mjwalsh@nemonik.com