Some checks failed
multibranch_ansible/pipeline/head There was a failure building this commit
29 lines
585 B
YAML
Executable File
29 lines
585 B
YAML
Executable File
#! /usr/bin/env ansible-playbook
|
|
---
|
|
- name: "TestPlay"
|
|
gather_facts: true
|
|
become: true
|
|
#hosts: 192.168.150.40
|
|
hosts: localhost
|
|
connection: local
|
|
tasks:
|
|
- debug:
|
|
msg: "Hello World"
|
|
- debug:
|
|
var: ansible_host
|
|
- debug:
|
|
var: playbook_dir
|
|
- debug:
|
|
msg: "Lalaalalala"
|
|
- debug:
|
|
var: ansible_host
|
|
- debug:
|
|
msg: "'{{ lookup('ansible.builtin.env', 'test') }}'"
|
|
- name: Install Package Test
|
|
package:
|
|
name: "{{item}}"
|
|
state: present
|
|
with_items:
|
|
- vim
|
|
- net-tools
|