mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
fix
This commit is contained in:
@@ -14,7 +14,7 @@ desktops:
|
|||||||
vars:
|
vars:
|
||||||
contexts:
|
contexts:
|
||||||
private:
|
private:
|
||||||
path: ~/Projects/private
|
path: Projects/private
|
||||||
git:
|
git:
|
||||||
email: fbtijfdq@void.black
|
email: fbtijfdq@void.black
|
||||||
name: Morten Olsen
|
name: Morten Olsen
|
||||||
@@ -24,7 +24,7 @@ desktops:
|
|||||||
instead_of: "ssh://git@gitea.olsen.cloud:2202/"
|
instead_of: "ssh://git@gitea.olsen.cloud:2202/"
|
||||||
|
|
||||||
zeronorth:
|
zeronorth:
|
||||||
path: ~/Projects/zeronorth
|
path: Projects/zeronorth
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: "op://jpksggxxmcuwnbwkooktr3iqcy/ut3yag6r7y4bsfrztahp7pcc6q/password"
|
NODE_AUTH_TOKEN: "op://jpksggxxmcuwnbwkooktr3iqcy/ut3yag6r7y4bsfrztahp7pcc6q/password"
|
||||||
AWS_PROFILE: "zeronorth"
|
AWS_PROFILE: "zeronorth"
|
||||||
|
|||||||
3
playbooks/Projects/zeronorth/.envrc
Normal file
3
playbooks/Projects/zeronorth/.envrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export NODE_AUTH_TOKEN="op://jpksggxxmcuwnbwkooktr3iqcy/ut3yag6r7y4bsfrztahp7pcc6q/password"
|
||||||
|
export AWS_PROFILE="zeronorth"
|
||||||
|
|
||||||
@@ -1,3 +1,14 @@
|
|||||||
|
- name: Ensure dir
|
||||||
|
tags:
|
||||||
|
- git
|
||||||
|
- config
|
||||||
|
become: "{{ use_become }}"
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ home }}/{{ context.path }}"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ username }}"
|
||||||
|
mode: "0700"
|
||||||
|
|
||||||
- name: Setup context git config
|
- name: Setup context git config
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
@@ -5,7 +16,7 @@
|
|||||||
become: "{{ use_become }}"
|
become: "{{ use_become }}"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "../templates/gitconfig.context.j2"
|
src: "../templates/gitconfig.context.j2"
|
||||||
dest: "{{ context.path }}/.gitconfig"
|
dest: "{{ home }}/{{ context.path }}/.gitconfig"
|
||||||
owner: "{{ username }}"
|
owner: "{{ username }}"
|
||||||
mode: "644"
|
mode: "644"
|
||||||
vars:
|
vars:
|
||||||
@@ -13,17 +24,6 @@
|
|||||||
name: "{{ name }}"
|
name: "{{ name }}"
|
||||||
when: "'git' in context"
|
when: "'git' in context"
|
||||||
|
|
||||||
- name: Ensure dir
|
|
||||||
tags:
|
|
||||||
- git
|
|
||||||
- config
|
|
||||||
become: "{{ use_become }}"
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ context.path }}"
|
|
||||||
state: directory
|
|
||||||
owner: "{{ username }}"
|
|
||||||
mode: "0700"
|
|
||||||
|
|
||||||
- name: Setup context ssh config
|
- name: Setup context ssh config
|
||||||
tags:
|
tags:
|
||||||
- git
|
- git
|
||||||
@@ -58,5 +58,5 @@
|
|||||||
content: "{{ context.git.signing_key }}"
|
content: "{{ context.git.signing_key }}"
|
||||||
dest: "{{ home }}/.ssh/keys/github-{{ name }}.pub"
|
dest: "{{ home }}/.ssh/keys/github-{{ name }}.pub"
|
||||||
owner: "{{ username }}"
|
owner: "{{ username }}"
|
||||||
mode: "0644"
|
mode: "0600"
|
||||||
when: "'git' in context and 'signing_key' in context.git"
|
when: "'git' in context and 'signing_key' in context.git"
|
||||||
|
|||||||
@@ -41,8 +41,8 @@
|
|||||||
|
|
||||||
{% for key in contexts %}
|
{% for key in contexts %}
|
||||||
{% if 'git' in contexts[key] %}
|
{% if 'git' in contexts[key] %}
|
||||||
[includeIf "gitdir:{{ contexts[key].path }}/"]
|
[includeIf "gitdir:{{ home }}/{{ contexts[key].path }}/"]
|
||||||
path = {{ contexts[key].path }}/.gitconfig
|
path = "{{ home }}/{{ contexts[key].path }}/.gitconfig"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user