[ansible-project] URI for testing web redirect

2018-03-17 Thread trg . achilles
hello, I want to test if web redirect works first without making public. curl equivalent would be curl -LI --header 'Host: www.example.com' 'http://localhost' uri module seems to be perfect for this but struggle with headers parameter for 'Host' header. Task created - name: Test redirect

[ansible-project] handler with listed variables

2017-07-05 Thread trg . achilles
Hello, I'm having trouble to figure out the best way to use handler with listed variables. My setup is as follow: *vars:* omd_sites: - prod - stg - dev3 *tasks:* - name: Template groups.mk template: src: groups.mk.j2 dest: "/opt/omd/sites/{{ item }}/etc/check_mk/

[ansible-project] Using json query filter

2017-06-30 Thread trg . achilles
Hello, I'm trying to determined if package is installed and what version I have the following tasks vars: cmk_version: 1.4.0p7 - name: Check if check-mk-raw package is installed yum: list: installed register: yum_packages - name: Display cmk_installed_version

[ansible-project] Re: [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}.

2017-06-30 Thread trg . achilles
Josh, thank you for the hint. Work as expected. -- 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.com. To post to this

[ansible-project] [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}.

2017-06-29 Thread trg . achilles
Hello, I'm trying to remove jinja delimiter used in when condition. My condition tests whether partition exists on disk drive. I use variable to assign which drive to test vars: raw_disk: 'sdb' task: - include: lvm.yml when: ansible_devices.{{ raw_disk }}.partitions|length == 0 with {{

[ansible-project] ansible_connection ansible_user

2017-02-16 Thread trg . achilles
Hello, I'm new to ansible and struggle to find a way create a role that could install application both on Windows and Linux os. I'm having problem to allocate correct ansible_connection ansible_user. It seems like if I set in vars connection parameters for Windows that affects Linux access an