Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
A
ansible
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 2
    • Merge Requests 2
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • facil
  • ansible
  • Issues
  • #29

Closed
Open
Opened Jan 31, 2018 by Romain Dessort@billuxOwner

Erreur Ansible lors de la création du templating de xinetd.d/munin sur grosminet

Bug très étrange de Ansible :

$ ansible-playbook --diff site.yml -K -t xinetd -vvv
[…]
TASK [hypervisor : Add xinetd configuration for munin] *********************************************************************************
task path: /home/rdessort/src/facil/ansible/roles/hypervisor/tasks/xinetd.yml:6
fatal: [grosminet]: FAILED! => {
    "changed": false, 
    "msg": "AnsibleError: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: {'msg': u\"The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer\", 'failed': True}: recursive loop detected in template string: The conditional check 'result.stdout |search('files? changed')' failed. The error was: Unexpected templating type error occurred on ({% if result.stdout |search('files? changed') %} True {% else %} False {% endif %}): expected string or buffer"
}
[…]

Alors que en rajoutant un -l grosminet, aucun problème :

$ ansible-playbook --diff site.yml -K -t xinetd -vvv -l grosminet
[…]
TASK [hypervisor : Add xinetd configuration for munin] *********************************************************************************
task path: /home/rdessort/src/facil/ansible/roles/hypervisor/tasks/xinetd.yml:6
<grosminet.facil.services> ESTABLISH SSH CONNECTION FOR USER: None
<grosminet.facil.services> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/rdessort/.ansible/cp/46aaaa042c grosminet.facil.services '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<grosminet.facil.services> (0, '/home/romain\n', '')
<grosminet.facil.services> ESTABLISH SSH CONNECTION FOR USER: None
<grosminet.facil.services> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/rdessort/.ansible/cp/46aaaa042c grosminet.facil.services '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/romain/.ansible/tmp/ansible-tmp-1517411452.87-70930005807558 `" && echo ansible-tmp-1517411452.87-70930005807558="` echo /home/romain/.ansible/tmp/ansible-tmp-1517411452.87-70930005807558 `" ) && sleep 0'"'"''
<grosminet.facil.services> (0, 'ansible-tmp-1517411452.87-70930005807558=/home/romain/.ansible/tmp/ansible-tmp-1517411452.87-70930005807558\n', '')
Using module file /home/rdessort/.local/share/virtualenvs/ansible/local/lib/python2.7/site-packages/ansible/modules/files/stat.py
<grosminet.facil.services> ESTABLISH SSH CONNECTION FOR USER: None
<grosminet.facil.services> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/rdessort/.ansible/cp/46aaaa042c grosminet.facil.services '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=jxkyygwgcjzlqstmpgdrkhbplfjvgwqy] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-jxkyygwgcjzlqstmpgdrkhbplfjvgwqy; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
<grosminet.facil.services> (0, '\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "path": "/etc/xinetd.d/munin", "checksum_algo": "sha1", "follow": false, "get_md5": false, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 0, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1517253400.77215, "block_size": 4096, "inode": 128733, "isgid": false, "size": 1336, "executable": false, "isuid": false, "readable": true, "version": "4021729487", "pw_name": "root", "gid": 0, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/plain", "blocks": 8, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "root", "path": "/etc/xinetd.d/munin", "xusr": false, "atime": 1517378763.6529715, "isdir": false, "ctime": 1517253401.288134, "isblk": false, "wgrp": false, "checksum": "80b68f1e07997e14cda34e08adcadd36dc5d34e2", "dev": 2307, "roth": true, "isfifo": false, "mode": "0644", "xgrp": false, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', '')
Using module file /home/rdessort/.local/share/virtualenvs/ansible/local/lib/python2.7/site-packages/ansible/modules/files/file.py
<grosminet.facil.services> ESTABLISH SSH CONNECTION FOR USER: None
<grosminet.facil.services> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/home/rdessort/.ansible/cp/46aaaa042c grosminet.facil.services '/bin/sh -c '"'"'sudo -H -S  -p "[sudo via ansible, key=fpokxnvdpsiadvkwjbgbkezeplcycngo] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-fpokxnvdpsiadvkwjbgbkezeplcycngo; /usr/bin/python ; rm -rf "/home/romain/.ansible/tmp/ansible-tmp-1517411452.87-70930005807558/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
<grosminet.facil.services> (0, '\n{"group": "root", "uid": 0, "changed": false, "owner": "root", "state": "file", "gid": 0, "mode": "0644", "path": "/etc/xinetd.d/munin", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "path": "/etc/xinetd.d/munin", "owner": null, "follow": false, "group": null, "unsafe_writes": null, "serole": null, "content": null, "state": "file", "diff_peek": null, "setype": null, "dest": "/etc/xinetd.d/", "selevel": null, "original_basename": "munin", "regexp": null, "validate": null, "src": "munin", "seuser": null, "recurse": false, "delimiter": null, "mode": "0644", "attributes": null, "backup": null}}, "diff": {"after": {"path": "/etc/xinetd.d/munin"}, "before": {"path": "/etc/xinetd.d/munin"}}, "size": 1336}\n', '')
ok: [grosminet] => {
    "changed": false, 
    "checksum": "80b68f1e07997e14cda34e08adcadd36dc5d34e2", 
    "diff": {
        "after": {
            "path": "/etc/xinetd.d/munin"
        }, 
        "before": {
            "path": "/etc/xinetd.d/munin"
        }
    }, 
    "gid": 0, 
    "group": "root", 
    "invocation": {
        "module_args": {
            "attributes": null, 
            "backup": null, 
            "content": null, 
            "delimiter": null, 
            "dest": "/etc/xinetd.d/", 
            "diff_peek": null, 
            "directory_mode": null, 
            "follow": false, 
            "force": false, 
            "group": null, 
            "mode": "0644", 
            "original_basename": "munin", 
            "owner": null, 
            "path": "/etc/xinetd.d/munin", 
            "recurse": false, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "src": "munin", 
            "state": "file", 
            "unsafe_writes": null, 
            "validate": null
        }
    }, 
    "mode": "0644", 
    "owner": "root", 
    "path": "/etc/xinetd.d/munin", 
    "size": 1336, 
    "state": "file", 
    "uid": 0
}
META: ran handlers
Read vars_file '../ansible-vars/vars/admin-accounts.yml'
[…]

Le template du fichier marche bien aussi comme ça :

ansible -m template -a "src=roles/hypervisor/templates/xinetd/munin dest=/etc/xinetd.d/ mode='0644'" grosminet -bK
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: facil/ansible#29