set pass for my user #4
|
@ -6,13 +6,13 @@
|
|||
tags:
|
||||
- hostname
|
||||
|
||||
- name: set image hostname
|
||||
hostname:
|
||||
name: "sensor-image"
|
||||
use: systemd
|
||||
tags:
|
||||
- never
|
||||
- image
|
||||
# - name: set image hostname
|
||||
# hostname:
|
||||
# name: "sensor-image"
|
||||
# use: systemd
|
||||
# tags:
|
||||
# - never
|
||||
# - image
|
||||
|
||||
- name: copy ssh keys if known
|
||||
copy:
|
||||
|
|
|
@ -122,6 +122,15 @@
|
|||
tags:
|
||||
- sshkeys
|
||||
|
||||
- name: set a password for {{ myusername }}
|
||||
user:
|
||||
name: "{{ myusername }}"
|
||||
password: "{{ mypassword }}"
|
||||
update_password: always
|
||||
tags:
|
||||
- human
|
||||
- mypass
|
||||
|
||||
- name: set up system users
|
||||
block:
|
||||
|
||||
|
|
|
@ -28,9 +28,7 @@ PersistentKeepalive = 240
|
|||
# {{ peer }}
|
||||
[Peer]
|
||||
PublicKey = {{ lookup('file', 'private/wireguard/' + peer + '.pub' ) }}
|
||||
{% set clients = [wireguard_clients[c].ip+"/32" for c in d.clients] %}
|
||||
{% set ips = [d.ip + "/32"] + clients
|
||||
AllowedIPs = {{ ips | join(", ") }}
|
||||
AllowedIPs = {{ d.ip }}/32
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue