summaryrefslogtreecommitdiff
path: root/roles/linaro-git-tools/tasks/main.yml
blob: bb537434eed523070d92a157add9bb312f4488a3 (plain)
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
---
- name: Create linaro-git-tools user account
  user: name={{git_user}} state=present

- name: Make sure the checkout destination directory exists
  file: path={{ tools_checkout_dir }}
        state=directory
        owner={{git_user}}
        group={{git_user}}
        mode=0755

- name: Clone linaro-git-tools repository
  git:  name=http://{{linaro_git_server}}/git/infrastructure/linaro-git-tools.git
        dest={{tools_checkout_dir}}/linaro-git-tools
        version="HEAD"

- name: Configure ldap.conf
  when: ssh_ldap_bindpw is defined
  template: src=ldap.conf dest={{tools_checkout_dir}}/linaro-git-tools/linaro_ldap.conf
            owner={{git_user}}
            group=root
            mode=0440

- name: Set up linaro_gerrit.conf with credentials
  when: gerrit_http_password is defined
  template: src=linaro_gerrit.conf dest={{tools_checkout_dir}}/linaro-git-tools/linaro_gerrit.conf
            owner={{git_user}}
            group=root
            mode=0440