Hello,
  I'm running ansible 2.1.0.0 and when running a playbook against a target 
system(machine B), there are no messages logged to syslog on the target 
machine(machine b) during the run.  Are there settings necessary to get the 
modules and options logged to syslog on the target system(machine b)?

If I add log_path=/tmp/ansible.log I get a list of modules and options 
logged to that file on the manager system(machine A), but still nothing on 
the target machine (machine b).

Thanks,
Ed

My current setup looks like this:

Machine A - Manager system.  OS is debian with Ansible 2.1 installed from 
packages.  This is where I'm running Ansible
Machine B - Target system.  OS is RedHat 7.  

Ansible.cfg
$ cat ansible.cfg 
[defaults]
roles_path=roles/internal:roles/external
vault_password_file=vpass
nocows=1
ask_sudo_pass=True
ansible_managed = Ansible managed: {file}

Inventory file
$ cat inventory/test 
[test]
machine-b

Test Playbook
$ cat plays/test.yml 
---
- name: Test
  hosts: all
  tasks:
    - name: touch file
      file:
        state: touch
        path: /tmp/test_file

Ansible Run
$ ansible-playbook -i inventory/test plays/test.yml 
SUDO password: 

PLAY [Test] 
********************************************************************

TASK [setup] 
*******************************************************************
ok: [machine-b]

TASK [touch file] 
**************************************************************
changed: [machine-b]

PLAY RECAP 
*********************************************************************
machine-b                  : ok=2    changed=1    unreachable=0    failed=0 
  


Machine B Rsyslog has the following rule added
*.* /var/log/everything

Machine B has the following journald settings
[Journal]
ForwardToSyslog=yes
MaxLevelSyslog=debug

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/05c683ab-852f-406e-948a-537072f61cf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to