Загрузка страницы

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
18 апреля 2022 г. 17:12:09
00:11:48
Яндекс.Метрика