Difference between revisions of "Ansible playbooks examples"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
== Examples == | == Examples == | ||
* [[Install software]]: <code>[[package:]]</code> | * [[Install software]]: <code>[[package:]]</code> | ||
− | * [[Install and configure sysstat using Ansible]]: (<code>[[package (Ansible module|package)]]</code>, <code>[[lineinfile]]</code>, <code>[[service]]</code>, <code>[[Package:]]</code>) | + | * [[Install and configure sysstat using Ansible]]: (<code>[[package (Ansible module|package)]]</code>, <code>[[lineinfile]]</code>, <code>[[service:]]</code>, <code>[[Package:]]</code>) |
* [[Configure user to be able to use sudo with no password]] (<code>[[lineinfile]]</code>) | * [[Configure user to be able to use sudo with no password]] (<code>[[lineinfile]]</code>) | ||
* <code>[[ios_ping]]</code> | * <code>[[ios_ping]]</code> |
Revision as of 18:59, 20 October 2021
Examples
- Install software:
package:
- Install and configure sysstat using Ansible: (
package)
,lineinfile
,service:
,Package:
) - Configure user to be able to use sudo with no password (
lineinfile
) ios_ping
- Create aws ec2 instance with ansible
Related terms
See also
- Ansible modules:
gather_facts, set_fact
,ansible.builtin.file
,lineinfile
,stat
,group
,mount
,git:
,package:
,command:
,shell:
,raw:
,template:
,register:
,user:
, Ansible playbooks examples,tasks:
,lineinfile, blockinfile:
,shell:
,command:
,raw:
,ansible.builtin.file, service:, aws.ecs_taskdefinition, aws.asg, docker_container, kubernetes.core.k8s
,community.
,include_tasks
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions
Advertising: