Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit a9ec2fa3 authored by foobar's avatar foobar Committed by freezed
Browse files

:zap: Add a subgroup for cloning git repo

parent 9525982e
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,12 @@
192.168.1.1
192.168.1.11
[gnome]
192.168.1.11
[mate]
192.168.1.2
[virtual]
192.168.1.2
192.168.1.22
......@@ -10,11 +16,19 @@
192.168.1.1
192.168.1.2
[workstation]
[localdev]
192.168.1.11
[station]
localhost
192.168.1.11
192.168.1.22
[workstation:children]
gnome
mate
localdev
[server:vars]
timezone="UTC"
......
---
# When 1st user is root, set it as "remote_user" and remove all "become: yes"
- hosts: "{{ host_list }}"
become_method: sudo
remote_user: "{{ my_user }}"
#remote_user: root
tasks:
- name: SUDO | Group sudo presence
......
......@@ -31,12 +31,12 @@
state: directory
- name: INCLUDE_VARS | git
when: inventory_hostname in groups.station
when: inventory_hostname in groups.localdev
ansible.builtin.include_vars: "vars/git.yml"
- name: MY USER | clone git repos
become: yes
when: inventory_hostname in groups.station
when: inventory_hostname in groups.localdev
ansible.builtin.git:
dest: "/home/{{ my_user }}/git/{{ item.local_name }}"
repo: "{{ item.url_https }}"
......
---
git_repositories:
- {local_name: "afpy19", url_https: "https://gitlab.com/free_zed/afpy19.git"}
- {local_name: "askthom", url_https: "https://lab.frogg.it/fcode/askthom.git"}
- {local_name: "djlease", url_https: "https://gitlab.com/free_zed/djlease.git"}
- {local_name: "eb-car", url_https: "https://gitlab.com/combien-de-temps-pour-faire-sonner-la-cloche-a-aiguebelle/combien-de-temps-pour-faire-sonner-la-cloche-a-aiguebelle.gitlab.io.git"}
- {local_name: "exchange", url_https: "https://gitlab.com/free_zed/mymsesb.git"}
- {local_name: "forga-a14n", url_https: "https://gitlab.com/free_zed/djbp.git"}
- {local_name: "forga-core", url_https: "https://gitlab.com/forga/tool/django/core.git"}
- {local_name: "forga-dev-bpy", url_https: "https://gitlab.com/forga/devel/boilerplate/python.git"}
- {local_name: "forga-dev-bpy", url_https: "https://git.afpy.org/fcode/boilerplate-python.git"}
- {local_name: "forga-emb", url_https: "https://gitlab.com/forga/process/fr/embarquement.git"}
- {local_name: "forga-glio", url_https: "https://gitlab.com/forga/forga.gitlab.io.git"}
- {local_name: "forga-man", url_https: "https://gitlab.com/forga/process/fr/manuel.git"}
......@@ -18,7 +16,7 @@ git_repositories:
- {local_name: "gpxpy", url_https: "https://github.com/freezed/gpxpy.git"}
- {local_name: "grandpy", url_https: "https://github.com/freezed/ocp7.git"}
- {local_name: "hellozappa", url_https: "https://gitlab.com/free_zed/hellozappa.git"}
- {local_name: "men-rt-ocp08", url_https: "https://github.com/remace/OC-P8-Purbeurre.git"}
- {local_name: "ldpy", url_https: "https://git.afpy.org/fcode/ldpy.git.git"}
- {local_name: "mountaingpx", url_https: "https://github.com/krisanselmo/mountaingpx.git"}
- {local_name: "myasb", url_https: "https://gitlab.com/forga/tool/ansible/debian.git"}
- {local_name: "mypsb", url_https: "https://gitlab.com/free_zed/mypsb.git"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment