---
- name: Prepare host
hosts: localhost
roles:
- common
- name: Install Jenkins
- geerlingguy.jenkins
- hosts: localhost
tasks:
- name: Create Jenkins CI directory
file:
path: /opt/ci/files
owner: jenkins
group: jenkins
mode: 0755
state: directory