AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-111379

user1174838's questions

Martin Hope
user1174838
Asked: 2021-12-15 15:53:18 +0800 CST

如何在 Ansible Tower 中使用集合

  • 2

我们正在使用具有 Ansible 2.9.13 的 Ansible Tower 3.7.4,我们还安装了“theforeman”ansible 集合。

我的测试剧本是

---
- name: Test foreman roles
  hosts: localhost
  become: false
  gather_facts: false

  tasks:

  - add_host:
      name: victim.local
      group: my_inv

- name: Test foreman roles
  hosts: my_inv
  become: false
  gather_facts: false

  tasks:

  - theforeman.foreman.host:
      server_url: "https://foreman-server.local"
      username: "admin"
      password: "password"
      parameters:
        name: "param_name"
        value: "param_value"
        parameter_type: "string"
    delegate_to: localhost

无论我使用'theforeman.foreman.host'还是只使用'host',都报告“错误!无法解析模块/操作”

定位命令显示安装路径:

locate theforeman | grep host
/var/lib/awx/vendor/inventory_collections/ansible_collections/theforeman/foreman/plugins/modules/foreman_host.py
/var/lib/awx/vendor/inventory_collections/ansible_collections/theforeman/foreman/plugins/modules/foreman_host_power.py
/var/lib/awx/vendor/inventory_collections/ansible_collections/theforeman/foreman/plugins/modules/foreman_hostgroup.py
/var/lib/awx/vendor/inventory_collections/ansible_collections/theforeman/foreman/plugins/modules/katello_host_collection.py

我把它放在 ansible.cfg 文件中:

grep collections /etc/ansible/ansible.cfg
collections_paths = /var/lib/awx/vendor/inventory_collections/ansible_collections

如何使用已安装的集合?

谢谢

ansible
  • 0 个回答
  • 426 Views
Martin Hope
user1174838
Asked: 2020-04-18 00:20:24 +0800 CST

ansible win_command 失败但在手动运行命令时有效

  • 0

我正在尝试运行 New-WdsClient PowerShell cmdlet 或 wdsutil /add-device,我真的不在乎最终使用哪个,只要它有效。

当我运行 'wdsutil.exe /add-device /device:new_client /id:aabbccddeeff /BootImagePath:"Boot\x64\Images\boot-(6).wim" ' 它工作,当我从 Ansible 运行相同的我得到 "stdout_lines": [ "", "Windows Deployment Services Management Utility [Version 10.0.14393.0]", "© 2016 Microsoft Corporation. All rights reserved.", "", "", "An error occurred while trying to execute the command.", "Error Code: 0xC103013A", "Error Description: The specified server name is invalid or does not exist in the directory service.", ""

我完全被难住了。

Ansible 的作用只是: - name: Pre Stage WDS Client win_command: powershell.exe - args: stdin: 'wdsutil.exe /add-device /device:{{ var_wds_client_name }} /id:{{ var_wds_client_mac }} /BootImagePath:"Boot\x64\Images\boot-(6).wim"'

使用 New-WdsClient 我什至没有走到这一步......

有任何想法吗?

-- 编辑 1 --

当我将 win_whoami 作为临时运行时,它可以工作: ansible wds-server --become --become-method runas --become-user DOMAIN\Administrator --module-name win_whoami 2> /dev/null| egrep "SeDebug|High" "account_name": "High Mandatory Level", "account_name": "High Mandatory Level", "SeDebugPrivilege": "enabled"

当我以 adhoc 方式运行 wdsutil 时, ansible wds-server --become --become-method runas --become-user DOMAIN\Administrator --module-name win_command -a "wdsutil.exe /add-device /device:client /id:0001a5a0c267 /BootImagePath:Boot\x64\Images\boot-(6).wim"我得到:

Windows Deployment Services Management Utility [Version 10.0.14393.0] © 2016 Microsoft Corporation. All rights reserved.

An error occurred while trying to execute the command. Error Code: 0xC103013A Error Description: The specified server name is invalid or does not exist in the directory service.

non-zero return code

ansible windows-server-2016 wds
  • 2 个回答
  • 2691 Views
Martin Hope
user1174838
Asked: 2020-03-12 17:37:44 +0800 CST

只有 oracle 用户可以运行 sqlplus

  • 0

我有几个带有 Oracle 12.2 服务器和 11.2 客户端的 RHEL 6 机器。这是供应商的要求。

在一台服务器上,我可以以任何用户身份运行 sqlplus,而在另一台服务器上,我只能以 oracle 用户身份运行 sqlplus。像任何其他用户一样运行会给出: ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA

当我说 oracle 用户时,我指的是名为 oracle 的操作系统用户。

我检查了 listener.ora 和 tnsnames.ora(在客户端和服务器 ORACLE_HOME 结构中),两者都是相同的,除了主机名。

文件/目录权限(所有权和模式)看起来不错。

tnsping 和 lsnrctl 状态看起来都很好。

关于问题可能是什么的任何想法?

谢谢

- 编辑 -

这些环境变量已设置并且功能相同。

set | awk -F= '/ORA/ {print $1}' ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_TERM ORACLE_UNQNAME ORA_SDTZ

oracle rhel6
  • 2 个回答
  • 67 Views
Martin Hope
user1174838
Asked: 2016-10-28 21:33:06 +0800 CST

KMS 客户端仍然尝试与 MS 对话

  • 0

我发现 Windows KMS 客户端(特别是 2012R2,但可能是其他客户端)在激活期间尝试与 MS 服务器通信。我的理解是,这应该完全是本地的。

slmgr /ipk GGWHX-.....-.....-.....-DJ6PQ slmgr /skms 10.10.10.10:1688 slmgr /ato

我们的服务器在我们的网络之外的访问非常有限我发现上面会产生 0x80072ee2 错误,除非指定了代理服务器。这引起了我的注意,因为我经常在构建服务器后不久配置代理设置。在此特定服务器上,不允许配置代理。

任何想法如何让 2012R2 激活内部 KMS 服务器而不通过 Internet 访问 MS?

谢谢

windows-server-2012-r2 kms
  • 1 个回答
  • 243 Views
Martin Hope
user1174838
Asked: 2015-05-19 02:02:14 +0800 CST

将 Linux 主机复制到新硬件

  • 13

我需要做主机到主机从旧硬件到新硬件的迁移。具体来说,从 HP BL460G7 到 HP BL460G8。新旧服务器都有 2 个 600GB 2.5" 驱动器并配置为 RAID1。我可以承受每台服务器 30 分钟的停机时间。

有四台服务器要迁移,最小的在逻辑卷中总共分配了 120GB,最大的分配了 510GB。三台服务器运行 RHEL5,一台运行 RHEL6。

我一直在绞尽脑汁思考如何在给定的时间范围内做到这一点,并且不破坏操作系统和关键数据。

我唯一的想法是:

  • 从旧服务器上卸下一个驱动器(服务器已打开)
  • 从新服务器上卸下两个驱动器(服务器已关闭)
  • 从球童中取出 G7 驱动器并放在一边
  • 从球童中取出 G8 驱动器并安装到 G7 球童中
  • 将 G7 盒中的 G8 驱动器安装到旧服务器中
  • 等待 RAID 控制器重建 RAID1 阵列
  • 完成关闭旧服务器后
  • 移除 G7 球童中的 G8 驱动器
  • 在 G8 caddy 中安装 G8 驱动器并插入 G8(已安装单个驱动器)
  • 启动 G8 服务器
  • 等待操作系统启动
  • 当操作系统启动时插入剩余的驱动器
  • 等待 RAID 阵列重建

这听起来合理吗?

编辑:RHEL5 是 RHEL5.10,RHEL6 是 RHEL6.6

我还应该注意到,其中两个系统是热四节点集群的一部分,该集群几乎不断复制应用程序“事件”(它是关键基础设施系统的一部分)。我们有备份,但我们只在系统完全故障的情况下使用。

先前的测试显示系统之间的最大“dd”大约为 50MBps,这太慢了。

编辑:我打算依靠 kudzu 来拾取和处理硬件更改。

linux
  • 4 个回答
  • 2456 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve