Browse Source

test

master
Markus Bergholz 5 months ago
parent
commit
82df907e85
Signed by: m GPG Key ID: B45724801354B174
3 changed files with 10 additions and 10 deletions
  1. +4
    -5
      ansible/mariadb_users.yml
  2. +5
    -3
      ansible/test_roles.yml
  3. +1
    -2
      bash/alias.bashrc

+ 4
- 5
ansible/mariadb_users.yml View File

@ -1,8 +1,7 @@
---
- hosts: osuv
- hosts: something
vars:
NC_TOKEN: "{{ lookup('env', 'NC_TOKEN') }}"
MARIADB_PASSWORD: "{{ lookup('nc_password', 'root_mariadb_password' , host='home.osuv.de', user='m', token=NC_TOKEN) }}"
MARIADB_PASSWORD: "{{ lookup('markuman.nextcloud.passwords', 'root_mariadb_password') }}"
dbs:
- nextcloud
- gitea
@ -13,7 +12,7 @@
mysql_db:
login_host: 127.0.0.1
login_password: "{{ MARIADB_PASSWORD }}"
login_port: 3307
login_port: 3306
login_user: m
name: "{{ item }}"
state: present
@ -28,7 +27,7 @@
login_user: m
name: "{{ item }}"
host: "%"
password: "{{ lookup('nc_password', item + '_mariadb_password' , host='home.osuv.de', user='m', token=NC_TOKEN) }}"
password: "{{ lookup('markuman.nextcloud.passwords', item + '_mariadb_password') }}"
priv: "{{ item }}.*:ALL"
state: present
with_items: "{{ list }}"

+ 5
- 3
ansible/test_roles.yml View File

@ -1,6 +1,8 @@
---
- hosts: debian
- hosts: localhost
gather_facts: True
roles:
- deb
tasks:
- name: Retrieve Password with label "Stackoverflow"
debug:
var: lookup('nextcloud_passwords', 'Stackoverflow' , host='nextcloud.tld', user='ansible', token='some-token')

+ 1
- 2
bash/alias.bashrc View File

@ -9,8 +9,6 @@ alias nani="nano"
alias zram="modprobe zram && echo $((3072*1024*1024)) > /sys/block/zram0/disksize && mkswap /dev/zram0 && swapon -p 60 /dev/zram0"
alias m="mplayer -vo vaapi -va vaapi"
alias uselua="lua_environment"
# alias matlab="/home/markus/MATLAB/bin/matlab"
# alias m="/home/markus/MATLAB/bin/matlab -nodesktop -nosplash"
alias o="octave-cli"
alias wetter="wttr"
alias gnumeric='LC_NUMERIC="en" gnumeric'
@ -29,3 +27,4 @@ alias myip_='curl ifconfig.me'
alias signkey='ssh-keygen -s ~/.ssh/id_ecdsa_sk -I m@osuv.de -n m -V +1w ~/.ssh/id_ed25519.pub'
alias otp='ykman oath code'
alias dnsinfo='resolvectl status'
alias gc="git commit -a -S -m"

Loading…
Cancel
Save