Compare commits
5 Commits
v0.0.7z-ps
...
v0.0.8c-cm
Author | SHA1 | Date | |
---|---|---|---|
3cd52a230e | |||
8dd65d65eb | |||
aac0f13134 | |||
ea60c89bf1 | |||
272867304a |
@ -5,7 +5,11 @@
|
|||||||
name: awx
|
name: awx
|
||||||
groups: sudo
|
groups: sudo
|
||||||
append: yes
|
append: yes
|
||||||
shell: /bin/bash
|
|
||||||
|
- name: Cration d'un mdp pour user awx
|
||||||
|
user:
|
||||||
|
name: awx
|
||||||
|
password: '$5$1POIEvs/Q.DHI4/6$RT6nl42XkekxTPKA/dktbnCMxL8Rfk8GAK7NxqL9D70'
|
||||||
|
|
||||||
- name: Get awx key_pub
|
- name: Get awx key_pub
|
||||||
get_url:
|
get_url:
|
||||||
|
@ -7,6 +7,12 @@
|
|||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
generate_ssh_key: yes
|
generate_ssh_key: yes
|
||||||
|
|
||||||
|
#- name: Creation mdp user awx
|
||||||
|
# ansible.builtin.user:
|
||||||
|
#name:
|
||||||
|
#user: awx
|
||||||
|
# password: '$5$1POIEvs/Q.DHI4/6$RT6nl42XkekxTPKA/dktbnCMxL8Rfk8GAK7NxqL9D70'
|
||||||
|
|
||||||
- name: Copie cle publique dans gsbstore
|
- name: Copie cle publique dans gsbstore
|
||||||
copy:
|
copy:
|
||||||
src: /home/awx/.ssh/id_rsa.pub
|
src: /home/awx/.ssh/id_rsa.pub
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- s-ssh
|
- s-ssh
|
||||||
|
- zabbix-cli
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- squid
|
- squid
|
||||||
- ssh-backup-key-gen
|
- ssh-backup-key-gen
|
||||||
- awx-user
|
# awx-user
|
||||||
# - local-store
|
# - local-store
|
||||||
# - zabbix-cli
|
|
||||||
## - syslog-cli
|
## - syslog-cli
|
||||||
- post
|
- post
|
||||||
# - goss
|
# - goss
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
- base
|
- base
|
||||||
- goss
|
- goss
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- awx-user
|
- awx-user-cli
|
||||||
#- awx
|
#- awx
|
||||||
# - zabbix-cli
|
# - zabbix-cli
|
||||||
- journald-snd
|
- journald-snd
|
||||||
|
@ -11,7 +11,8 @@
|
|||||||
- dns-master
|
- dns-master
|
||||||
- webautoconf
|
- webautoconf
|
||||||
# - elk-filebeat-cli
|
# - elk-filebeat-cli
|
||||||
# - journald-snd
|
- journald-snd
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
|
- awx-user-cli
|
||||||
- post
|
- post
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ $vmCpus = @{
|
|||||||
|
|
||||||
function create_vm{ param([string]$nomvm)
|
function create_vm{ param([string]$nomvm)
|
||||||
|
|
||||||
if ($vmMem.ContainsKey($nomvm)) {
|
if (($vmMem.ContainsKey($nomvm)) -and ($vmCpus.ContainsKey($nomvm))) {
|
||||||
& "$vboxmanage" import "$ovafile" --vsys 0 --vmname "$nomvm" --memory $vmMem[$nomvm] --cpus $vmCpus[$nomvm}
|
& "$vboxmanage" import "$ovafile" --vsys 0 --vmname "$nomvm" --memory $vmMem[$nomvm] --cpus $vmCpus[$nomvm]
|
||||||
Write-Host "Machine $nomvm importée"
|
Write-Host "Machine $nomvm importée"
|
||||||
} else {
|
} else {
|
||||||
#Importation depuis l'ova
|
#Importation depuis l'ova
|
||||||
|
Reference in New Issue
Block a user