mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-30 04:36:51 +00:00
changes for admin proxy credentials
This commit is contained in:
1 parent
f4bbf6cf95
commit
60d0edd4b5
7 files changed
+66
-35
No files matched your search
@@ -32,6 +32,26 @@
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Create htpasswd file
|
||||
block:
|
||||
- name: install htpasswd dependancy
|
||||
ansible.builtin.package:
|
||||
name: python3-passlib
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Create htpasswd user
|
||||
community.general.htpasswd:
|
||||
path: /etc/squid/htpasswd
|
||||
create: true
|
||||
state: present
|
||||
name: "{{ proxy_user }}"
|
||||
password: "{{ proxy_user_password }}"
|
||||
owner: "{{ squid_user }}"
|
||||
group: "{{ squid_group }}"
|
||||
mode: 0640
|
||||
hash_scheme: bcrypt
|
||||
|
||||
- name: Include variables
|
||||
include_vars: rules.yml
|
||||
|
||||
|
||||
Reference in new issue
Block a user