playbooks: updated hosts with target variable
the playbooks shall only run on the hosts provided by the variable target. NOTE: the default target is set within the job templates Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
a3583e2b77
commit
d2ce20787d
|
|
@ -1,5 +1,5 @@
|
|||
- name: Setup Basic Debian Host Machine
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Update Apt Cache and Upgrade all Packages
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Build Jenkins Docker Image
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
gather_facts: false
|
||||
vars:
|
||||
root_path: "~/nwl-ci"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Clone a Git Repository
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
gather_facts: false
|
||||
vars:
|
||||
git_repo_path: "~/nwl-ci"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Configure Docker Network Adapter
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
gather_facts: false
|
||||
become: yes
|
||||
tasks:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Create SSH Keypair
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
gather_facts: false
|
||||
vars:
|
||||
ssh_passphrase: !vault |
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: The First Playbook
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
tags:
|
||||
- rls
|
||||
gather_facts: False
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Setup NWL Git URL For Jenkins Seed Job
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
gather_facts: false
|
||||
vars:
|
||||
root_path: "~/nwl-ci"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Setup Jenkins Instance
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
gather_facts: false
|
||||
vars:
|
||||
root_path: "~/nwl-ci"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
- name: Start or Stop NWL Jenkins Instance
|
||||
hosts: linux
|
||||
hosts: "{{ target }}"
|
||||
gather_facts: false
|
||||
vars:
|
||||
root_path: "~/nwl-ci"
|
||||
|
|
|
|||
Loading…
Reference in New Issue