From c2411b3c0c6ca83e85cdc1e3fd7c4381e51ed9d2 Mon Sep 17 00:00:00 2001 From: Maxim Vershinin Date: Mon, 6 Jul 2026 09:17:52 +0000 Subject: [PATCH] FIX: ansible become password variable moved from inventory to group_vars --- data/secrets.yaml | 40 +++++++++++++++--------------- inventory/group_vars/all/main.yaml | 1 + playbooks/deploy.yaml | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) create mode 100644 inventory/group_vars/all/main.yaml diff --git a/data/secrets.yaml b/data/secrets.yaml index 1a9c827..83ec629 100644 --- a/data/secrets.yaml +++ b/data/secrets.yaml @@ -1,21 +1,21 @@ $ANSIBLE_VAULT;1.1;AES256 -35353966646662383961363235613231343937366466313034396664376137356264343964303136 -6238346137393435336630613463373761356165326433650a646339653563616638666366376636 -32313762643137356662343564623662326336373063343264623336313864343630666165313735 -6232346532373630630a373265366138666364613839613639346539376532356332663362623830 -35373730646664613431333465333338376530633061313535323663363337386237333265613531 -36323030623862333463303636313363313837306430353031396439383361346661393533353932 -38376132306565386365393236376433396333323533666264303163333230356231343338636133 -63333766653436633366383038306265346535613863656534613962383534333565316665656565 -66306534326662316239646536386665353537303739383266303138383437613165656361643534 -33353235306139613333313539656235353764346136633662373962326264663039613534356331 -66626563663139626566363766653139623038653966343662313365633763626136326238393533 -63336239653532373539323261316231636334376633333330376631313133333536313236363435 -39396433313665353830636366666237326666373833643262373137633336343535313732333862 -38393331663162323434613966643737646231666334313131373066353534306661353432613366 -37613763613739316534306661393631346563343066383364653232636537666162666532643161 -66643830353933646231643530303265386530393063323766373361626234383666313061336665 -36336436666265326338313831656463313331353362626538383665316337333162386232326133 -33353639626165366438366664306261323335643732393563393734346132316439353631313161 -63633565613037363135326161666132623439633362643032653931326665346539643562653038 -38643835333964396466 +37386438323934313261326132383539643062353335333661326131643032316239326161373930 +3264633766303937353938343565326562626535343830370a303632386666613033323132616561 +33353565616333346663396535613738343439323535663932633134663139623032353764633333 +6533366164393164300a303963343863323133303565323635313030396532336237313837633231 +35653733306565386665333739323433646238343961396234666232666238363264333639346265 +31323037356665366138663365653666623066393661353035636239656136323466633461323765 +34323836623766643562363035313465343863633534646466376437633761373665636233646532 +39616362353930376464626136336133333639636638623138313065383934666237383738396334 +34323930306536663131333639373764393135653161663431373563323837313964333736643238 +61353861656431396366616534633935636332323665336536353337646133653333663436623633 +34616333393666356632656238333935636562366237393162653864306462316231376666653932 +32373336373231306134343337373736656638343439373564343464653030623034333734656462 +63633634396631333233323939663763313163373863326634306663656638373239306634643337 +32343262393761643237653538376163633066376538616537653139376637663339646234383535 +62396663396161396130303135396330303530333533363533366330303831326661653138333336 +37386436373337613064343138373433393435653066303364326461303565336539396362373135 +31663538383030326566303166353934626639653432356562613938646364666337383835353234 +62383838346339653766393233383563356363383039303862393564353464343534373666376434 +33323136613337366566393535633730643064353664393436363830333561643265623163386165 +62323337363238643166 diff --git a/inventory/group_vars/all/main.yaml b/inventory/group_vars/all/main.yaml new file mode 100644 index 0000000..9c12d3a --- /dev/null +++ b/inventory/group_vars/all/main.yaml @@ -0,0 +1 @@ +ansible_become_passwd: "{{ ansible_password }}" \ No newline at end of file diff --git a/playbooks/deploy.yaml b/playbooks/deploy.yaml index 1e05090..ba2b252 100644 --- a/playbooks/deploy.yaml +++ b/playbooks/deploy.yaml @@ -7,7 +7,7 @@ vars_files: ../data/secret/secrets.yaml vars: - ansible_user_passwd_hash: "{{ ansible_become_passwd | password_hash('sha512', 's3edscrj45e6r') }}" + ansible_user_passwd_hash: "{{ ansible_password | password_hash('sha512', 's3edscrj45e6r') }}" user_passwd_hash: "{{ user_password | password_hash('sha512', 's3ed6123jhgcr') }}" handlers: