Compare commits
2 Commits
f5c6d28095
...
b693daec8b
| Author | SHA1 | Date | |
|---|---|---|---|
| b693daec8b | |||
| 2523ab8a28 |
@@ -19,7 +19,7 @@
|
||||
use: pikaur
|
||||
upgrade: true
|
||||
aur_only: true
|
||||
- import_tasks: ../tasks/aur_rebuild.yml
|
||||
- import_tasks: aur_rebuild.yml
|
||||
vars:
|
||||
package_pattern: python
|
||||
when:
|
||||
|
||||
@@ -15,7 +15,7 @@ kernel_func () {
|
||||
fi
|
||||
if [[ "${current_kernel}" =~ ${next_kernel} ]]
|
||||
then
|
||||
if [[ -n "${next_ucode}" ]] && [[ "${current_ucode}" == ${next_ucode} ]]
|
||||
if [[ -n "${next_ucode}" ]] && [[ "${current_ucode}" == ${next_ucode} ]] || [[ -z ${intel_ucode} ]];
|
||||
then
|
||||
print -P "[%F{#00ff00}OK%f]"
|
||||
else
|
||||
|
||||
27
systemd-creds.yaml
Normal file
27
systemd-creds.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
- name: Establish systemd-creds for use with multiple services
|
||||
hosts: arch debian
|
||||
become: true
|
||||
|
||||
vars_prompt:
|
||||
- name: passphrase
|
||||
prompt: "Enter password manager passphrase"
|
||||
private: true
|
||||
confirm: true
|
||||
- name: creds_var
|
||||
prompt: "Enter the environment variable where systemd will store the credential PATH"
|
||||
private: false
|
||||
- name: creds_name
|
||||
prompt: "Enter the credential name"
|
||||
private: false
|
||||
|
||||
tasks:
|
||||
- name: Create shared systemd runtime override directory
|
||||
ansible.builtin.command:
|
||||
cmd: mkdir /etc/systemd/system/shared.d
|
||||
creates: /etc/systemd/system/shared.d
|
||||
- name: Create override
|
||||
ansible.builtin.shell:
|
||||
cmd: |
|
||||
printf {{ passphrase }} | (echo "[Service]"; systemd-creds encrypt --name={{ creds_name }} --pretty - -) >> /etc/systemd/system/shared.d/00-systemd-creds.conf
|
||||
printf "Environment=%s=%%d/%s\n" {{ creds_var }} {{ creds_name }} >> /etc/systemd/system/shared.d/00-systemd-creds.conf
|
||||
#creates: /etc/systemd/system/shared.d/00-systemd-creds.conf
|
||||
Reference in New Issue
Block a user