feat!: migrate to ansible
This commit is contained in:
parent
e2edd60c1f
commit
e2d7ec1ae3
6 changed files with 26 additions and 20 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
inventory.ini
|
||||
inventory.yaml
|
||||
inventory.yml
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Updating system..."
|
||||
sudo pacman -Syu
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo pacman -S git
|
||||
|
||||
git config --global user.email "ordinarydev@protonmail.com"
|
||||
git config --global user.name "Ivan Reshetnikov"
|
||||
git config --global commit.gpgsign true
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Installing neovim..."
|
||||
sudo pacman -S neovim
|
||||
|
||||
echo "Cloning neovim configuration..."
|
||||
mv ~/.config/nvim{,-old}
|
||||
git clone git@github.com:ordinary-dev/ordinary-neovim.git ~/.config/nvim
|
19
README.md
19
README.md
|
@ -1,3 +1,20 @@
|
|||
# System from scratch
|
||||
|
||||
A set of scripts to configure my system.
|
||||
A set of ansible scripts to configure my system.
|
||||
|
||||
|
||||
## Example
|
||||
|
||||
```bash
|
||||
ansible-playbook -i inventory.ini ping.yml [--connection=local]
|
||||
```
|
||||
|
||||
Note that `inventory.ini` is not included in the repo.
|
||||
|
||||
|
||||
## Inventory example
|
||||
|
||||
```ini
|
||||
[od-hosts]
|
||||
192.168.0.1
|
||||
```
|
||||
|
|
5
ping.yml
Normal file
5
ping.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
- name: Ping
|
||||
hosts: od-hosts
|
||||
tasks:
|
||||
- name: Ping my hosts
|
||||
ansible.builtin.ping:
|
Loading…
Reference in a new issue