Skip to content
Snippets Groups Projects
Commit bf06ca27 authored by Attila Farkas's avatar Attila Farkas
Browse files

change sudo to become and update readme

parent 09b1f322
No related branches found
No related tags found
1 merge request!2Resolve "Add routing"
......@@ -8,7 +8,7 @@ generate.py is a python program that generates a vagrant source file from a defi
### Usage:
1. Clone the project.
2. Navigate to the project folder.
3. Type `$ python generate.py yaml_file.yaml`. There is a test yaml file in the repository called test.yaml.
3. Type `$ python3 generate.py yaml_file.yaml`. There is a test yaml file in the repository called test.yaml.
4. Run `$ vagrant up`
### Input yaml file structure
......
......@@ -5,7 +5,7 @@
tasks:
- name: Change default gateway
sudo: yes
become: yes
command: route add default gw {{ host.router_ip }} enp0s8
{% endfor %}
......
......@@ -5,13 +5,13 @@
tasks:
- name: Enable IP forwarding
sudo: yes
become: yes
copy:
dest: "/etc/sysctl.conf"
content: "net.ipv4.ip_forward=1"
- name: Restarting procps service
sudo: yes
become: yes
command: /etc/init.d/procps restart
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment