[ansible-project] A generic Handler ?

2021-09-03 Thread Fred B
Hello All, I'm using ansible with a lot of managed docker images, and I'm searching a way to have a single handler for all my tasks, at least reduce my list of handlers ... Something like this (pseudo code) Handler ``` - name: Run specific service docker compose docker_compose:

Re: [ansible-project] Docker Entrypoint

2020-10-02 Thread Fred
Hello, Thanks, but without argument, docker ansible failed. - name: Extract SQL Guacamole community.general.docker_container: name: guacamole-sql-extract image: "guacamole/guacamole:latest" container_default_behavior: no_defaults detach: false # command: "/opt/guacamole/bin/initdb.sh --mysql >

Re: [ansible-project] Docker Entrypoint

2020-10-01 Thread Fred
Hello, Sorry if it's not the right place, I'm thinking my problem is little bit similar. In guacamole install process, It's suggest to do: *docker* run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > *initdb.sql* I want to convert in proper way with ansible. This is my task: -

[ansible-project] MySQL DB module behavior

2020-10-01 Thread Fred
Hello, I need somes precisions about mysql_db module. I try to create Apache Guacamole role. This is my playbook: FIRST TASK: - name: Creation databases guacamole community.mysql.mysql_db: login_host: "{{ database_ip }}" login_user: root login_password: "{{ mariadb_root_pass }}" name:

[ansible-project] Intersect and difference in Ansible

2020-09-27 Thread Fred Kanyesigye
I have been trying to create a playbook that removes the resource record sets for terminated EC2 instances. Other tasks can debug fine, but when it comes to intersect and difference to debug/list the common contents to keep and non-common to be removed, the output still brings the entire list

Re: [ansible-project] Hash password filter

2020-09-13 Thread Fred
secure. > > > On Sun, 13 Sep 2020 at 14:51, Fred > wrote: > >> Thanks for your answer. >> >> Your advice ldap_sha1 not working. >> >> Traefik is a reverseproxy and that's in their documentation that >> mentionned need SHA1 or MD5 hash. >&

Re: [ansible-project] Hash password filter

2020-09-13 Thread Fred
_guide/playbooks_filters.html#hashing-filters > ). > Definitely read this: > > "Hash types available depend on the master system running ansible, > ‘hash’ depends on hashlib password_hash depends on passlib > (https://passlib.readthedocs.io/en/stable/lib/passlib.hash.html)." >

[ansible-project] Hash password filter

2020-09-13 Thread Fred
Hello, # SUMMARY When I tried to apply filter on variable password, Traefik BasicAuth rejected password. # ISSUE TYPE - Bug Report # COMPONENT NAME # ANSIBLE VERSION ``` ansible 2.9.12 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/fred

[ansible-project] Need help for parsing json

2019-04-18 Thread fred goasmat
Hello, In his playbook below I'trying to assert that there only one ingress rule (tcp on port 443 with cidr 0.0.0.0/0) I 've difficulties to understand how to parse it --> help :) --- - name: test assert aws security rule Ok hosts: localhost gather_facts: no vars: elb_name:

[ansible-project] Automating The Install of Ansible Tower

2017-03-21 Thread Fred Ferguson
Hello, I'm in the process of writing an Ansible Playbook that will install and setup Ansible Tower 3.1.1. Everything so far is ok in that I can get Ansible Tower installed, but after that I become reliant on the GUI for things like licencing and setting up github authentication, and the

Re: [ansible-project] Re: FreeBSD support

2014-06-09 Thread Fred
here we go: https://github.com/ansible/ansible/issues/7701 :) On Friday, June 6, 2014 2:38:03 PM UTC+2, Michael DeHaan wrote: Please file a ticket in github so we can remember to update the docs. Thanks! On Thu, Jun 5, 2014 at 6:03 AM, Fred frederi...@gmail.com javascript: wrote

Re: [ansible-project] Re: FreeBSD support

2014-06-05 Thread Fred
The user module's documentation points us to an example in the github examples directory.. there's nothing like that in ansible-examples, but there's a lot in ansible galaxy: Optionally set the user's password to this crypted value. See the user example in the github examples directory

[ansible-project] ansible-pull and group_vars

2014-04-10 Thread Fred Badel
ssh://g...@stash.aws.onlotaris.com/infra/ansible-play.git local.yml the playbook runs, but group_vars does not seem to be evaluated.. Is this a normal behavior? Thanks. Fred -- You received this message because you are subscribed to the Google Groups Ansible Project group. To unsubscribe from

[ansible-project] cannot access ec2.instances data

2014-04-07 Thread Fred Badel
to ec2_info.instances. private_ip variables, the playbook fail with an undefined variable error ... Does any one have an idea? Many thanks in advance. Fred ** playbook: --- - hosts: 127.0.0.1 connection: local gather_facts: True vars: keypair: mykey dnsdomain: aws.domain.com

[ansible-project] volumes parameter in ec2 module

2014-02-18 Thread Fred Badel
/tmp/ansible-tmp-1392727140.89-11533654997021 echo $HOME/.ansible/tmp/ansible-tmp-1392727140.89-11533654997021'] 127.0.0.1 PUT /var/folders/38/_r_kpxbd4cvfq_9qdvkb0jd4gn/T/tmpapBeCB TO /Users/fred/.ansible/tmp/ansible-tmp-1392727140.89-11533654997021/ec2 127.0.0.1 EXEC ['/bin/sh', '-c', '/usr

[ansible-project] mysql_db state=import only once

2013-11-26 Thread Fred Badel
notice, the sql file is imported each time the playbook is run ... (aka, the task is marked as changed each time I run the playbook) is this an expected behavior? does someone have a recommended way of using the import feature and run it only once? Thanks. Fred -- You received this message