From a2c70e9e6edf24057be15dee6b10b9fe621f8379 Mon Sep 17 00:00:00 2001 From: staffadmin Date: Tue, 11 Nov 2025 21:53:55 +0100 Subject: [PATCH] [Scan OK] --- backup.yml | 4 +++- scan.yml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/backup.yml b/backup.yml index e5df21c..7375f63 100644 --- a/backup.yml +++ b/backup.yml @@ -30,7 +30,7 @@ # export BWS_ACCESS_TOKEN= # database_password: "{{ lookup('bitwarden.secrets.lookup', '') }}" -#! script +#! SECRETS # - name: Install Bitwarden CLI # ansible.builtin.command: # cmd: "{{ item }}" @@ -81,6 +81,8 @@ no_log: true delegate_to: localhost +#! SECRETS + - ansible.builtin.git: repo: https://{{ user }}:{{ gitea_token }}@gitea.jingoh.fr/{{ user }}/backup.git dest: "{{ playbook_dir }}/backup" diff --git a/scan.yml b/scan.yml index b5ecbf7..586085a 100644 --- a/scan.yml +++ b/scan.yml @@ -60,6 +60,16 @@ tasks: +#! SECRETS + # - name: Install Bitwarden CLI + # ansible.builtin.command: + # cmd: "{{ item }}" + # delegate_to: localhost + # loop: + # - apk add --no-cache nodejs npm + # - npm install -g @bitwarden/cli + + - ansible.builtin.command: cmd: bw logout delegate_to: localhost @@ -106,6 +116,8 @@ delegate_to: localhost become: false +#! SECRETS + # - ansible.builtin.apt: # name: masscan # update_cache: true @@ -251,3 +263,8 @@ delegate_to: localhost become: false + - name: logout bw + ansible.builtin.command: + cmd: bw logout + delegate_to: localhost + become: false \ No newline at end of file