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 992c7a45 authored by freezed's avatar freezed :mountain:
Browse files

:wrench: Update inventory group name

parent 27678f17
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
192.168.1.1 192.168.1.1
192.168.1.2 192.168.1.2
[localdev] [workstat]
192.168.1.11 192.168.1.11
[station] [station]
...@@ -27,7 +27,7 @@ localhost ...@@ -27,7 +27,7 @@ localhost
[workstation:children] [workstation:children]
gnome gnome
mate mate
localdev workstat
[server:vars] [server:vars]
timezone="UTC" timezone="UTC"
......
...@@ -20,6 +20,14 @@ ...@@ -20,6 +20,14 @@
src: templates/ssh_config.j2 src: templates/ssh_config.j2
mode: 0640 mode: 0640
- name: "MY USER | Local public key for {{ my_user }}"
become: yes
ansible.builtin.authorized_key:
comment: "Managed by Ansible"
key: https://gitlab.com/free_zed.keys
state: present
user: "{{ my_user }}"
- name: MY USER | git directory presence - name: MY USER | git directory presence
become: yes become: yes
when: inventory_hostname in groups.station when: inventory_hostname in groups.station
...@@ -31,12 +39,12 @@ ...@@ -31,12 +39,12 @@
state: directory state: directory
- name: INCLUDE_VARS | git - name: INCLUDE_VARS | git
when: inventory_hostname in groups.localdev when: inventory_hostname in groups.workstat
ansible.builtin.include_vars: "vars/git.yml" ansible.builtin.include_vars: "vars/git.yml"
- name: MY USER | clone git repos - name: MY USER | clone git repos
become: yes become: yes
when: inventory_hostname in groups.localdev when: inventory_hostname in groups.workstat
ansible.builtin.git: ansible.builtin.git:
dest: "/home/{{ my_user }}/git/{{ item.local_name }}" dest: "/home/{{ my_user }}/git/{{ item.local_name }}"
repo: "{{ item.url_https }}" repo: "{{ item.url_https }}"
......
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