w1100n
This site is best viewed in Google Chrome
3/16/2019 17:52

install latest ansible
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#latest-releases-via-apt-debian

Add the following line to /etc/apt/sources.list:

deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
Then run these commands:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
$ sudo apt-get update
$ sudo apt-get install ansible
vim local.yml

- hosts: localhost
  become: true
  tasks:
  - name: Install htop
    apt: name=htop

git add local.yml
git commit -m "initial commit"
git push origin master

sudo ansible-pull -U https://github.com/wiloon/ansible.git

https://linux.cn/article-10434-1.html

<< Previous Posts Newer Posts >>
辽ICP备14012896