Re: [ansible-project] Problem with: create user with an encrypted password

2019-01-19 Thread Henrik Schuetze
Hello Kai, yes i set the password the same as the username. And thanx for your help. Your solution works for me. Am Samstag, 19. Januar 2019 09:23:47 UTC+1 schrieb Kai Stian Olstad: > > On Saturday, 19 January 2019 00:54:36 CET Henrik Schuetze wrote: > > Hello, > > &g

[ansible-project] Problem with: create user with an encrypted password

2019-01-18 Thread Henrik Schuetze
Hello, i want to create users on a centos system. the users use rsa keys to authenticate on the linux. They have an PAM token to connect on the maria db on the system. And with PAM they need an Linux password and the token to login to the maria. The Users need no password to connect to the cent

[ansible-project] Re: how to use an pipe like < < in ansible ?

2018-10-10 Thread Henrik Schuetze
no. this doesnt work, because the shell command only support one "<" -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups

Re: [ansible-project] problem: date and time as variable in 2 steps

2018-08-28 Thread Henrik Schuetze
yes i see two different dates because this. my solution is: in \tasks\main.yml put in line 2: - include: set_facts.yml in \tasks\set_facts.yml - set_fact: file_date: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}" cacheable: true that worked for me. Thanx for your help Am Dienstag

[ansible-project] problem: date and time as variable in 2 steps

2018-08-28 Thread Henrik Schuetze
i want to create an backup with Backup_ so i use: defaults\main.yml file_date: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}" and then i want to transfer the file. But between backup and transfer the time has changed... so my transfer goes wrong What can i do ? -- You received this messag

[ansible-project] how to use an pipe like < < in ansible ?

2018-08-21 Thread Henrik Schuetze
i want to use a command like: read CURRENT_LOG CURRENT_POS < <( mysql -BNe "SHOW MASTER STATUS"); echo CURRENT_LOG=$CURRENT_LOG CURRENT_POS=$CURRENT_POS (credits: https://dba.stackexchange.com/questions/34934/how-to-retrieve-master-log-position-and-master-log-file-in-shell-script) But ansible

Re: [ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
2018 15:29:00 UTC+2 schrieb Jonathan Lozada De La Matta: > > Do one host first then the other if you are doing this manually. If you > are trying to use ansible to exactly do this steps then use the user module > and authorized_key > > On Tue, Aug 21, 2018 at 9:24 AM Henrik

Re: [ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
Matta: > > what do you mean? hard code what exactly? > > On Tue, Aug 21, 2018 at 9:13 AM Henrik Schuetze > wrote: > >> thanx. but i need to address the other host. And i dont want to hard code >> the ip adress in this task >> >> >> >> >> Am

[ansible-project] Re: Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
thanx. but i need to address the other host. And i dont want to hard code the ip adress in this task Am Dienstag, 21. August 2018 14:39:30 UTC+2 schrieb Henrik Schuetze: > > Hi, > > i want to enable ssh between two linux hosts. > i generate the ssh key on both hosts. > and

[ansible-project] Solution for add keys mutual

2018-08-21 Thread Henrik Schuetze
Hi, i want to enable ssh between two linux hosts. i generate the ssh key on both hosts. and then i need to add the keys on the other servers respectively Does anyone has a ready solution for that? greetings Henrik -- You received this message because you are subscribed to the Google Groups "

[ansible-project] Re: replace or lineinfile ?

2018-08-10 Thread Henrik Schuetze
Thanx, i will give it a try. Am Freitag, 10. August 2018 11:09:44 UTC+2 schrieb Henrik Schuetze: > > For a replication project i have to dynamic create an .sql for execute > with mariadb. > i have two hosts (A and B) in my host variables, both with name, ip and ID. > > i th

[ansible-project] replace or lineinfile ?

2018-08-10 Thread Henrik Schuetze
For a replication project i have to dynamic create an .sql for execute with mariadb. i have two hosts (A and B) in my host variables, both with name, ip and ID. i think about create a local file, copy it to the destination hosts and then ? i need to put the ip address from Server A in the file f

[ansible-project] Re: Problem replace with variable

2018-08-10 Thread Henrik Schuetze
Thanx. I have found an other way. The my.cnf comes from me. As a template. I put a field with the server id into my server variables, and refer it in the template. Server: default_ip: 127.0.0.1 ansible_ssh_host: 127.0.0.1 mysql_db_id : 7 and in my template i say: server-id = {{ my

[ansible-project] Problem replace with variable

2018-08-09 Thread Henrik Schuetze
Hi i want to create a mariaDB active - active replication. And so i need to modify the my.cnf with ansible. I have two hosts both are defined undser the host variables with: File for host 1: default_ip: 127.0.0.1 ansible_ssh_host: 127.0.0.1 host_id : 7 File for host 2: default_ip: 127.0.0.2 a