Compare commits

..

5 Commits

Author SHA1 Message Date
3cd52a230e maj awx 2024-05-02 08:39:34 +02:00
8dd65d65eb role awx actualisé 2024-05-01 12:02:05 +02:00
a
aac0f13134 script mkvm.ps1 2024-04-17 21:09:06 +02:00
a
ea60c89bf1 fix script mkvm.ps1 2024-04-17 09:01:47 +02:00
272867304a reparation script mkvm.ps1 2024-04-16 11:27:20 +02:00
6 changed files with 18 additions and 7 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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