Commit 606ae782 authored by nono's avatar nono 💻
Browse files

Ajout des tests

parent 2eb5f6ef
*********************************
Vagrant driver installation guide
*********************************
Requirements
============
* Vagrant
* Virtualbox, Parallels, VMware Fusion, VMware Workstation or VMware Desktop
Install
=======
Please refer to the `Virtual environment`_ documentation for installation best
practices. If not using a virtual environment, please consider passing the
widely recommended `'--user' flag`_ when invoking ``pip``.
.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site
.. code-block:: bash
$ pip install 'molecule_vagrant'
---
- name: Converge
hosts: all
vars_files:
- vars-test.yml
tasks:
- name: "Include ansible-role-discourse"
include_role:
name: "ansible-role-discourse"
---
# vagrant:
# raw_config_args:
# - "vm.network 'forwarded_port', guest: 80, host: 8083"
# - "vm.network 'forwarded_port', guest: 443, host: 8084"
dependency:
name: galaxy
driver:
name: vagrant
provider:
name: virtualbox
platforms:
- name: instance
box: debian/bullseye64
memory: 2048
cpus: 2
interfaces:
# `network_name` is the required identifier, all other keys map to
# arguments.
- auto_config: true
network_name: private_network
type: dhcp
- network_name: private_network
ip: 192.168.56.3
- network_name: forwarded_port
guest: 80
host: 8085
- network_name: forwarded_port
guest: 443
host: 8086
provisioner:
name: ansible
verifier:
name: ansible
- name: Prepare
become: yes
hosts: all
tasks:
- name: "Install required packages"
package:
name: gnupg2,curl
update_cache: yes
- name: "Include ansible-role-docker"
include_role:
name: "geerlingguy.docker"
---
discourse_domain_name: "localhost"
discourse_admin_email_account: "root@localhost"
discourse_forum_admin_user: "admin"
discourse_forum_admin_password: "hello_world"
# SMTP settings
discourse_smtp_address: "localhost"
discourse_smtp_port: "25"
discourse_smtp_username: ""
discourse_smtp_auth: ""
discourse_smtp_openssl_verify: "false"
discourse_smtp_password: ""
discourse_smtp_starttls: "false"
---
# This is an example playbook to execute Ansible tests.
- name: Verify
hosts: all
gather_facts: false
tasks:
- name: Example assertion
assert:
that: true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment