forked from HewlettPackard/ansible-ilorest-role
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ansible_main.yml
40 lines (36 loc) · 982 Bytes
/
ansible_main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
#test
- hosts: all
gather_facts: False
pre_tasks:
- name: pre_task install python-ilorest-library
become: yes
pip:
name: python-ilorest-library
#- name: pre_task copy hprest_chif.so
# become: yes
# copy:
# src: hprest_chif.so
# dest: /usr/lib
tasks:
- name: obtain iLO IP address
# Escalates user to run this task since local iLO login
# Ensure that ansible_become_pass is set in hosts
become: yes
get_ilo_ip:
name: "Get iLO"
enabled: True
- name: Enable secure boot
become: yes
ex05_enable_secure_boot:
name: "Enable secure boot"
enabled: True
boot_enabled: False
- name: Add iLO user account
become: yes
ex10_add_ilo_user_account:
name: "Add ilo user account"
enabled: True
new_loginname: 'name'
new_username: 'user'
new_password: 'password'