test with ansible
2.3.1.0 on Fedora 24:
> ansible-playbook -i hosts test.yml
PLAY [all] ********************************************************************************************
TASK [command] ****************************************************************************************
changed: [localhost -> localhost]
PLAY RECAP ********************************************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=0
in /var/log/messages :
ansible-command[22445]: [WARNING] Consider using service module rather than running service
> more *
::::::::::::::
ansible.cfg
::::::::::::::
[defaults]
command_warnings = False
::::::::::::::
hosts
::::::::::::::
localhost
::::::::::::::
test.yml
::::::::::::::
---
- hosts: all
gather_facts: false
tasks:
- command: service --status-all
delegate_to: localhost
> ansible-playbook --version
ansible-playbook 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, May 10 2017, 20:04:36) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]
> sudo dnf info ansible
Installed Packages
Name : ansible
Arch : noarch
Epoch : 0
Version : 2.3.1.0
Release : 1.fc24
Size : 27 M
Repo : @System
From repo : updates
Summary : SSH-based configuration management, deployment, and task execution system
URL :
http://ansible.comLicense : GPLv3+
Description :
: Ansible is a radically simple model-driven configuration management,
: multi-node deployment, and remote task execution system. Ansible works
: over SSH and does not require any software or daemons to be installed
: on remote nodes. Extension modules can be written in any language and
: are transferred to managed machines automatically.