mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
server? server!
This commit is contained in:
parent
8b8313b22e
commit
6bb17f9c65
8 changed files with 100 additions and 3 deletions
36
new/playbooks/basic-setup.yml
Normal file
36
new/playbooks/basic-setup.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
- name: Basic Server setup
|
||||
hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Test ping
|
||||
ansible.builtin.ping:
|
||||
- name: Install docker
|
||||
ansible.builtin.apt:
|
||||
name: docker.io
|
||||
state: present
|
||||
- name: Install nginx
|
||||
ansible.builtin.apt:
|
||||
name: nginx
|
||||
state: present
|
||||
- name: Ensure nginx is started
|
||||
ansible.builtin.service:
|
||||
name: nginx
|
||||
state: started
|
||||
- name: Create hello world file
|
||||
ansible.builtin.copy:
|
||||
dest: /var/www/html/index.html
|
||||
content: |
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>uwu</title>
|
||||
</head>
|
||||
<body>
|
||||
meow :3
|
||||
</body>
|
||||
</html>
|
||||
mode: u=rw,g=r,o=r
|
||||
Loading…
Add table
Add a link
Reference in a new issue