Skip to content
Snippets Groups Projects
Commit ed829996 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Linting

parent 1a44893b
Branches
No related tags found
No related merge requests found
...@@ -5,35 +5,37 @@ ...@@ -5,35 +5,37 @@
--- ---
# file: roles/gitlab-client/tasks/main.yml # file: roles/gitlab-client/tasks/main.yml
- name: "GitLab Client Role" - name: GitLab Client Role
set_fact: role_gitlab_client_started=true set_fact:
tags: 'always' role_gitlab_client_started: yes
tags:
- always
- block: - block:
- name: "Install Python Library" - name: Install Python Library
pip: pip:
name: 'python-gitlab' name: python-gitlab
state: 'present' state: present
- name: "Copy Scripts" - name: Copy Scripts
copy: copy:
src: '{{ item }}' src: '{{ item }}'
dest: '/usr/local/bin/{{ item }}' dest: /usr/local/bin/{{ item }}
mode: '0775' mode: 0775
with_items: with_items:
- 'gitlab-issue.py' - gitlab-issue.py
- 'gitlab-merge-request.py' - gitlab-merge-request.py
- name: "Configure GitLab Client" - name: Configure GitLab Client
template: template:
src: 'gitlab.cfg' src: gitlab.cfg
dest: '~/.gitlab.cfg' dest: ~/.gitlab.cfg
mode: '0600' mode: 0600
become_user: '{{ item }}' become_user: '{{ item }}'
with_items: '{{ admins }}' with_items: '{{ admins }}'
when: gitlab_client[item] is defined when: gitlab_client[item] is defined
when: '"gitlab-client" not in excluded_roles' when: not excluded_roles or "gitlab-client" not in excluded_roles
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment