Ansible saltcall module

saltcall Wrapper

We developped a special module to call saltcall on remote systems.

  • You can use it via ansible:

    ANSIBLE_TARGETS=$(hostname) bin/ansible all \
      -m saltcall -a "function=test.ping"
    
    ANSIBLE_TARGETS=$(hostname) bin/ansible all \
      -m saltcall -a "function=grains.get args=fqdn"
    
  • Or via a playbook like in our saltcall one , usable this way:

    ANSIBLE_TARGETS=$(hostname) bin/ansible-playbook \
     ansible/plays/saltcall.yml -m saltcall -a "function=test.ping"
    

It’s better to use the playbook because it call the makinastates_pillar role to copy locally on the remote box the pillar computed by the salt+pillar bridge before executing the salt command.

Last Updated: 2017-03-15