Add Git Server To Keep ansible-pull
Traffic Local (#21)
* Fedora Minimal does not come with tar. Need installed for Telegraf. * First attempt at automating HTTP git server setup. * Add cron jobs to keep projects up to date. * Add new git playbook to server. * Add new server variables for git. Put all variables in a dictionary. * Put variables into run file. * Fix the loop variables to be dictionaries, not jinja. * Upgrade nanominer. * Attempt to fix templating error. * Attempt to fix templating error, but in the right spot this time. :) * Attempt another fix for building list of dictionaries. * Change strings to dicts. * Add quotes for jinja variables. * Remove extra curly brackets. * Fix the rest of the file's dictionaries now that General works. * Remove testing code. * Variablize ansible repo. Begin watching personal repos rather than pinging GitHub. * Fix variables to append, not replace. * Fix variable names. * Try to prevent variables from being strings, without getting formatting error. * Try to fix variables, again. * Fixed git.yml. Found a way to test locally and all is working now.
This commit is contained in:
59
local.yml
59
local.yml
@ -47,62 +47,6 @@
|
||||
when: pentesting == true
|
||||
|
||||
|
||||
- name: FORTESTING | Outside Block | Output Block Variables
|
||||
debug:
|
||||
var: "{{ item }}"
|
||||
loop:
|
||||
- workstation
|
||||
- miner
|
||||
- server
|
||||
|
||||
- name: FORTESTING | Block
|
||||
block:
|
||||
|
||||
- name: FORTESTING | Inside Block | Output Block Variables
|
||||
debug:
|
||||
var: "{{ item }}"
|
||||
loop:
|
||||
- workstation
|
||||
- miner
|
||||
- server
|
||||
|
||||
- name: FORTESTING | Inside Block | W Test 1 # Did not run on true. :(
|
||||
shell: echo "test"
|
||||
when: workstation == "true"
|
||||
|
||||
- name: FORTESTING | Inside Block | W Test 2 # Did run on true! :)
|
||||
shell: echo "test"
|
||||
when: workstation == true
|
||||
|
||||
- name: FORTESTING | Inside Block | W Test 3 # Did run on true! :)
|
||||
shell: echo "test"
|
||||
when: workstation
|
||||
|
||||
- name: FORTESTING | Inside Block | M Test 1 # Skipped on false. :)
|
||||
shell: echo "test"
|
||||
when: miner == "true"
|
||||
|
||||
- name: FORTESTING | Inside Block | M Test 2 # Skipped on false. :)
|
||||
shell: echo "test"
|
||||
when: miner == true
|
||||
|
||||
- name: FORTESTING | Inside Block | M Test 3 # Skipped on false. :)
|
||||
shell: echo "test"
|
||||
when: miner
|
||||
|
||||
- name: FORTESTING | Inside Block | S Test 1 # Skipped on yolo. :)
|
||||
shell: echo "test"
|
||||
when: server == "true"
|
||||
|
||||
- name: FORTESTING | Inside Block | S Test 2 # Skipped on yolo. :)
|
||||
shell: echo "test"
|
||||
when: server == true
|
||||
|
||||
- name: FORTESTING | Inside Block | S Test 3 # Ran on yolo. :(
|
||||
shell: echo "test"
|
||||
when: server
|
||||
|
||||
|
||||
|
||||
####### Workstations #######
|
||||
|
||||
@ -228,6 +172,9 @@
|
||||
- include: tasks/server/software/gitlab.yml
|
||||
when: gitlab and ansible_pkg_mgr in ("apt", "dnf") and ansible_distribution not in ("Fedora")
|
||||
|
||||
- include: tasks/server/software/git.yml
|
||||
when: git and ansible_pkg_mgr in ("apt")
|
||||
|
||||
when: server == true
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user