Using the Vagrant Ansible Local Provisioner
Vagrant can use a provisioner such as Ansible to configure your system reliably in the way that you need. Vagrant can use either the provisioner Ansible or Ansible_local. Using the Ansible Local provisioner with Vagrant we do not need to have Ansible installed on the host, it is installed into the guest VM
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.hostname = "web"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.provision "ansible_local" do |a|
a.playbook = "playbook.yaml"
end
end
---
- name: Manage Apache
hosts: all
become: true
gather_facts: false
tasks:
- name: Install Apache
package:
name: httpd
state: present
- name: Start Apache
service:
name: httpd
state: started
enabled: true
Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Authors/Details/andrew-mallett and take time to see my own site http://www.theurbanpenguin.com
-~-~~-~~~-~~-~-
Please watch: "RHCSA 9 Working With Podman Containers"
https://www.youtube.com/watch?v=piwcpd_hWn0
-~-~~-~~~-~~-~-
Видео Using the Vagrant Ansible Local Provisioner канала theurbanpenguin
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.hostname = "web"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.provision "ansible_local" do |a|
a.playbook = "playbook.yaml"
end
end
---
- name: Manage Apache
hosts: all
become: true
gather_facts: false
tasks:
- name: Install Apache
package:
name: httpd
state: present
- name: Start Apache
service:
name: httpd
state: started
enabled: true
Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Authors/Details/andrew-mallett and take time to see my own site http://www.theurbanpenguin.com
-~-~~-~~~-~~-~-
Please watch: "RHCSA 9 Working With Podman Containers"
https://www.youtube.com/watch?v=piwcpd_hWn0
-~-~~-~~~-~~-~-
Видео Using the Vagrant Ansible Local Provisioner канала theurbanpenguin
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Creating Automatic Python Firewall Script in Ubuntu](https://i.ytimg.com/vi/zyonwV5GWek/default.jpg)
![Starting Using grep in Linux](https://i.ytimg.com/vi/WvcY-mn5XRM/default.jpg)
![Using awk in Linux to create arrays and count in use login shells](https://i.ytimg.com/vi/ewaRg11z7-4/default.jpg)
![Find Duplicate Files In Linux With Awk In Under A Minute!](https://i.ytimg.com/vi/wj7NPnKRh44/default.jpg)
![How To Use Podman Containers](https://i.ytimg.com/vi/piwcpd_hWn0/default.jpg)
![Linux Command Line History Guru](https://i.ytimg.com/vi/_4ikq3uSTRE/default.jpg)
![Understanding Shells: Linux Sub Shells vs Child Shells](https://i.ytimg.com/vi/JG4MW7nUqiY/default.jpg)
![Unmasking the Linux Umask](https://i.ytimg.com/vi/zsgtQ9BMrPM/default.jpg)
![Setting the Correct Permissions on Linux Mountpoints](https://i.ytimg.com/vi/hgGP_5y3OWE/default.jpg)
![Using Firewalld Ipsets to Block Hackers on Rocky Linux 8.6](https://i.ytimg.com/vi/MWQqjSHpIVo/default.jpg)
![Docker Security Exploits Using the Docker Group](https://i.ytimg.com/vi/ZYgWUktFDg4/default.jpg)
![Using sed to Insert and Delete Lines in Linux Text File](https://i.ytimg.com/vi/LWB71ouayYg/default.jpg)
![Understanding Zombie Processes in Linux](https://i.ytimg.com/vi/g3QPerQSeW0/default.jpg)
![Install Kubernetes MicroK8s Using Ansible on Ubuntu 20.04](https://i.ytimg.com/vi/a2j1py7w8uk/default.jpg)
![Install MySQL 8 Using Ansible on Vagrant AlmaLinux 8 System](https://i.ytimg.com/vi/yHwTU-E_iPI/default.jpg)
![Use Vagrant to Deploy Any Ansible Playbook to Install Terraform or Any Tooling You Choose](https://i.ytimg.com/vi/k5RIR6bcQ6g/default.jpg)
![Working with the UFW Firewall on Ubuntu automating entries using journalctl and awk](https://i.ytimg.com/vi/UERrCQEQKVU/default.jpg)
![Watch as we Install Ubuntu 22.04 the Jammy Jellyfish](https://i.ytimg.com/vi/lEUVoMMCd-k/default.jpg)
![Using the OpenSSH Agent Windows 10 to Cache Passphrases](https://i.ytimg.com/vi/JTDhV43EKsM/default.jpg)
![Using Vagrant with Hyper-V on Windows 10](https://i.ytimg.com/vi/-CPEwUkM1Es/default.jpg)