Benutzer-Werkzeuge

Webseiten-Werkzeuge


Seitenleiste

3D

INTERN

ADOBE

ARDUINO

BITBUCKET

DOCKER

C4D

GIT

HTML

IPHONE

JAVASCRIPT

JTL-SHOP

LARAVEL

MAGENTO2

MYSQL

PHP

PLESK

PROCESSING

PYTHON

SUITECRM

SEO

TRYTON

THUNDERBIRD / ICEDOVE / FossaMail

TYPO3

TYPO3: BACKEND

TYPO3: TYPOSCRIPT

UNIX

VLC

VVVV

WINDOWS

WINDOWS 10

WORDPRESS

XAMPP

XT:C 4 (Veyton)

unix-sysadmin-with-ansible

unix sysadministration with ansible (reminders)

PREREQ

install

$ aptitude install ansible

add nodes

$ sudo vi /etc/ansible/hosts

USAGE

ping all nodes

$ ansible all -m ping -u blaubaer
192.168.178.70 | success >> {
    "changed": false, 
    "ping": "pong"
}

copy file

$ ansible debug -m copy -a "src=/path/to/filename dest=/path/to/destination/filename" -u blaubaer

get hostname

$ ansible tvs -m command -a "cat /etc/hostname" -u blaubaer

reboot all

$ ansible debug -m command -a "/sbin/reboot" -u blaubaer --sudo --ask-sudo-pass

shutdown all

$ ansible debug -m command -a "/sbin/shutdown -h now" -u blaubaer --sudo --ask-sudo-pass
unix-sysadmin-with-ansible.txt · Zuletzt geändert: 2015/02/11 23:52 von admin