0
0

Gitea: fixed runner

This commit is contained in:
Opnxng 2023-11-10 03:38:57 +08:00
parent cd3aa4094c
commit b178162ced
3 changed files with 13 additions and 18 deletions

View File

@ -1,11 +1,11 @@
- name: Remove existing .netrc
ansible.builtin.file:
file:
path: "/home/{{ control_user }}/.netrc"
state: absent
delegate_to: "{{ control_host }}"
- name: Remove existing .netrc.gpg
ansible.builtin.file:
file:
path: "/home/{{ control_user }}/.netrc.gpg"
state: absent
delegate_to: "{{ control_host }}"
@ -37,7 +37,7 @@
delegate_to: "{{ control_host }}"
- name: Remove .netrc
ansible.builtin.file:
file:
path: "/home/{{ control_user }}/.netrc"
state: absent
delegate_to: "{{ control_host }}"
@ -56,17 +56,3 @@
- name: Use git-credential-netrc
command: git config --global credential.helper "/usr/bin/git-credential-netrc -f ~/.netrc.gpg -v"
delegate_to: "{{ control_host }}"
- name: Install gnupg-agent
apt:
name:
- gnupg-agent
state: latest
install_recommends: false
delegate_to: "{{ control_host }}"
become: true
- name: Reminder to add to .profile or .bashrc
pause:
prompt: "Add entry: export GPG_TTY=$(tty)"
delegate_to: "{{ control_host }}"

View File

@ -6,6 +6,12 @@
group: 1000
mode: 0755
- name: Remove existing daemon.json
file:
path: "{{ docker_dir }}/runner/daemon.json"
state: absent
become: true
- name: Set up Docker daemon configuration file to solve DNS problems
template:
src: "conf/daemon.json.j2"

View File

@ -1,6 +1,9 @@
saetup:
oracle3:
- runner
compose:
oracle3:
- gitea
- runner
# ----------------------------------------------------------------------------------------------------