Compare commits
3 Commits
39a18a603d
...
78c13e41a6
Author | SHA1 | Date | |
---|---|---|---|
78c13e41a6 | |||
c7bcf2cddf | |||
a86b3e6a43 |
9
.drone.yml
Normal file
9
.drone.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: ansible
|
||||||
|
steps:
|
||||||
|
- name: ansible-lint
|
||||||
|
image: nixos/nix:2.11.0
|
||||||
|
commands:
|
||||||
|
- nix run -c ansible-lint ansible
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
## Ansible Control Node Setup
|
## Ansible Control Node Setup
|
||||||
|
|
||||||
In a Python 3 environment (perhaps a venv):
|
Run in repository root to use `ansible-*` commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install -r requirements.txt
|
nix run -c $SHELL
|
||||||
```
|
```
|
||||||
|
|
||||||
## `misc.yaml`
|
## `misc.yaml`
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[defaults]
|
[defaults]
|
||||||
inventory = ./inventory
|
inventory = ./inventory
|
||||||
|
roles_path = ./roles
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
- name: Upload docker configuration
|
- name: Upload docker configuration
|
||||||
become: yes
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
src: ../docker
|
src: ../../docker
|
||||||
dest: /etc/pbri
|
dest: /etc/pbri
|
||||||
# Files should inaccessible to non-root users.
|
# Files should inaccessible to non-root users.
|
||||||
mode: u=rw,g=,o=
|
mode: u=rw,g=,o=
|
13
default.nix
Normal file
13
default.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
pkgs ? import <nixpkgs> {}
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
paths = with pkgs; [
|
||||||
|
ansible
|
||||||
|
ansible-lint
|
||||||
|
];
|
||||||
|
in
|
||||||
|
pkgs.buildEnv {
|
||||||
|
name = "infrastructure-env";
|
||||||
|
paths = paths;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user