author | Luke Hoersten <luke@hoersten.org> |
Sat, 16 Sep 2023 01:39:37 -0500 | |
changeset 223 | de03976c2df1 |
parent 4 | 46fe3aa0080c |
permissions | -rw-r--r-- |
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
4
46fe3aa0080c
Check for server conf for apt cacher proxy.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
3 |
- name: check if running apt-cacher server |
46fe3aa0080c
Check for server conf for apt cacher proxy.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
4 |
stat: path="/etc/apt-cacher-ng/acng.conf" |
46fe3aa0080c
Check for server conf for apt cacher proxy.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
5 |
register: stat_server_conf |
46fe3aa0080c
Check for server conf for apt cacher proxy.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
6 |
|
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
- name: configure apt-cacher proxy |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
become: yes |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
template: |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
10 |
src: "02proxy.j2" |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
11 |
dest: "/etc/apt/apt.conf.d/02proxy" |
4
46fe3aa0080c
Check for server conf for apt cacher proxy.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
12 |
when: not stat_server_conf.stat.exists |