-
Notifications
You must be signed in to change notification settings - Fork 1
/
lint-it.yml
41 lines (38 loc) · 1017 Bytes
/
lint-it.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- name: Lint it
hosts: localhost
gather_facts: yes
become: yes
vars:
git_project_name: gitops
git_clone_path: "/projects/{{ git_project_name }}"
git_username: ""
git_password: ""
tasks:
- name: Git clone
include_role:
name: gitops
vars:
gitops_clone: yes
gitops:
repo_path: "{{ git_clone_path }}"
username: "{{ git_username }}"
password: "{{ git_password }}"
protocol: http
url: gitlab.com
repo_uri: /estudosdevops/ansible/roles/{{ git_project_name }}.git
branch: master
- name: Create new file
file:
path: "{{ git_clone_path }}/foo.conf"
state: touch
- name: Git commit
include_role:
name: gitops
vars:
gitops_commit: yes
gitops:
username: "{{ git_username }}"
email: [email protected]
msg: "Added: new Virtual Host by Ansble"
repo_path: "{{ git_clone_path }}"